Article 57CB9 gcc: problem with -ld or -lz not found

gcc: problem with -ld or -lz not found

by
Rhyader
from LinuxQuestions.org on (#57CB9)
And yet another question...
This one is about gcc and C programming. Please bear in mind that I am NOT a programer! I am a moron who can type "make all" - and sometimes figure out where to stick a code patch - but that's about the size of it. I'm trying to compile my MUD on this new installation. It compiles OK on other systems, so it is not my code, it is the gcc setup on this computer. The first time it produced an error saying it could not find zlib.h. I put the zlib.h file in a directory (hope it was the right one) and now I get a different error:
Code:/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:58: smaug] Error 1
make: *** [Makefile:42: all] Error 2What does all this "/../../../../" gobbeldygook refer to?

Help ?latest?d=yIl2AUoC8zA latest?i=3rdcYahfW-E:nX1FpiXX1UA:F7zBnMy latest?i=3rdcYahfW-E:nX1FpiXX1UA:V_sGLiP latest?d=qj6IDK7rITs latest?i=3rdcYahfW-E:nX1FpiXX1UA:gIN9vFw3rdcYahfW-E
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments