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 ?


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 ?