This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 1.3.2: question about zlib -undefine referemce to "Compress"


kalmen chia schrieb am 2001-06-06, 14:09:

Dear ,
After I compiled , it gave me this msg.

zc.o(.text+0x159):zc.c: undefined reference to `compress'
collect2: ld returned 1 exit status
make: *** [zc] Error 1

what happends to my code ? TQ for your attention

You need to link against libz:

$ gcc -o z.exe z.c -lz

-gph

-- 
=^..^=

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]