For Programmers: Free Programming Magazines  


Home > Archive > Compression > June 2007 > compiling gzrecover under cygwin "undefined reference to '_inflateInit2'









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author compiling gzrecover under cygwin "undefined reference to '_inflateInit2'
lionelv@gmail.com

2007-06-12, 3:55 am

Not sure if anyone here has compiled gzrecover. When I attempt to
compile using "make" I get the following output:

cc -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -lz -L.
gzrecover.c -o gzrecover
/cygdrive/c/DOCUME~1/VANDEN~1/LOCALS~1/Temp/cc4qf65Z.o:gzrecover.c:
(.text+0x28c): undefined reference to `_inflateInit2_'
/cygdrive/c/DOCUME~1/VANDEN~1/LOCALS~1/Temp/cc4qf65Z.o:gzrecover.c:
(.text+0x67f): undefined reference to `_inflate'
/cygdrive/c/DOCUME~1/VANDEN~1/LOCALS~1/Temp/cc4qf65Z.o:gzrecover.c:
(.text+0x736): undefined reference to `_inflateEnd'
/cygdrive/c/DOCUME~1/VANDEN~1/LOCALS~1/Temp/cc4qf65Z.o:gzrecover.c:
(.text+0x78d): undefined reference to `_inflateEnd'
/cygdrive/c/DOCUME~1/VANDEN~1/LOCALS~1/Temp/cc4qf65Z.o:gzrecover.c:
(.text+0x962): undefined reference to `_inflateEnd'
collect2: ld returned 1 exit status
make: *** [gzrecover] Error 1

I've placed libz.a in the current directory but it obviously doesn't
work. I can't seem to get it to link, it seems to me that it isn't
finding the zlib library. Any ideas?

Thanks

Lionel.

lionelv@gmail.com

2007-06-12, 3:56 am

On Jun 12, 11:43 am, "lion...@gmail.com" <lion...@gmail.com> wrote:
> Not sure if anyone here has compiled gzrecover. When I attempt to
> compile using "make" I get the following output:
>
> cc -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -lz -L.
> gzrecover.c -o gzrecover
> /cygdrive/c/DOCUME~1/VANDEN~1/LOCALS~1/Temp/cc4qf65Z.o:gzrecover.c:
> (.text+0x28c): undefined reference to `_inflateInit2_'
> /cygdrive/c/DOCUME~1/VANDEN~1/LOCALS~1/Temp/cc4qf65Z.o:gzrecover.c:
> (.text+0x67f): undefined reference to `_inflate'
> /cygdrive/c/DOCUME~1/VANDEN~1/LOCALS~1/Temp/cc4qf65Z.o:gzrecover.c:
> (.text+0x736): undefined reference to `_inflateEnd'
> /cygdrive/c/DOCUME~1/VANDEN~1/LOCALS~1/Temp/cc4qf65Z.o:gzrecover.c:
> (.text+0x78d): undefined reference to `_inflateEnd'
> /cygdrive/c/DOCUME~1/VANDEN~1/LOCALS~1/Temp/cc4qf65Z.o:gzrecover.c:
> (.text+0x962): undefined reference to `_inflateEnd'
> collect2: ld returned 1 exit status
> make: *** [gzrecover] Error 1
>
> I've placed libz.a in the current directory but it obviously doesn't
> work. I can't seem to get it to link, it seems to me that it isn't
> finding the zlib library. Any ideas?
>
> Thanks
>
> Lionel.



Never mind. I've given up on it as it turns out I don't need gzrecover.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com