Cannot Find -lz

Posted by Bee on Thu 21 Jan 2010 12:48 AM — 6 posts, 31,743 views.

#0
I'm using Cygwin, and Smaugfuss 1.9. All the .o files have compiled, but at the end I get this message:

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make: *** [all] Error 2

I'm not sure what I'm missing or if I should try to reinstall anything. Any help would be appreciated!
Canada #1
Yep, you need the zlib development packages.
#2
I've already tried installing the package with the setup.exe and it didn't work. It may be the source I'm taking it from, but it hasn't worked yet.
Australia Forum Administrator #3
Read this, including the stuff about changing the makefile slightly:

Template:post=9319
Please see the forum thread: http://gammon.com.au/forum/?id=9319.
#4
Ha! I dumb. I got it. Thanks :)
#5
Thanks for you information i newly join and so nice post I agree with you. Your complement is so informative ....