Error Compiling under Cygwin -- Pennmush-1.8.3p10

Posted by Tamesis on Sat 16 Jan 2010 09:42 AM — 2 posts, 20,595 views.

#0
Greetings!

While attempting to compile Pennmush-1.8.3p10 on Cygwin, I am experiencing the following error:

gcc -std=gnu99 -ggdb -O -W -Wall -pedantic -Wno-comment -I/usr/include/ -I.. -I.
./hdrs -c -o strutil.o strutil.c
strutil.c:1193: error:conflicting types for 'imaxdiv_t'
/usr/include/inttypes.h:231: error: previous declaration of 'imaxdiv_t'
make[1]: *** [strutil.o] Error1
make[1]: Leaving directory '/home/pennmush-1.8.3p10/src'
make: *** [all] Error2

Using the same Cygwin setup, I have not experienced any problems compiling pennmush-1.8.1p10.

Can anyone help?
Thanks!!!
USA #1
I don't know the code in question, but chances are that you simply need to remove the conflicting declaration from strutil.c. You might want to check that it's the same declaration as in inttypes.h to make sure that it's safe to remove the one in Pennmush code.