13 Nov, 2010, emadel80 wrote in the 1st comment:
Votes: 0
Hi everyone I am a noob about MUD coding. I downloaded the codebase dbsc2.5.2, which is a derivative of SMAUG. First time using cygwin and I am not sure how to copy and paste the compile issues, but it looks like almost all files of codebase returns the same warnings:

source_file: warning: subscript has type 'char'

Also, it produces an error at the end:

<PATH>/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[1]: *** [dbs] Error 1
make: *** [all] Error 2

I installed cygwin with default packages and the ones written in the Windows Install.txt. Maybe I missed a package that I need. Any help and suggestions are welcome. Thank you for your help.


I
13 Nov, 2010, Ssolvarain wrote in the 2nd comment:
Votes: 0
I'm not sure if Cygwin is what you'd want to use, there.
13 Nov, 2010, Tyche wrote in the 3rd comment:
Votes: 0
emadel80 said:
<PATH>/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[1]: *** [dbs] Error 1
make: *** [all] Error 2


You need to run setup and install the 'zlib-dev' package.
13 Nov, 2010, emadel80 wrote in the 4th comment:
Votes: 0
Quote
You need to run setup and install the 'zlib-dev' package.


I already did that, the problem was in the Makefile. It couldn't find -lz as the compilation error says. So I had to compile it with

-lm -L -lz

instead of

-lm -lz

Thanks for the help though.
0.0/4