DDD : compile error
Jong B. Lee
jbdoll@kepri.re.kr
Thu Nov 30 01:08:00 GMT 2000
Dear cygwin users,
When I compile DDD-3.2.1, the following error occurs.
--------------------------------------------------------------------------
c++ -DHAVE_CONFIG_H -DNDEBUG -O2 -g -W -Wall -trigraphs -c -I. -I. -I./.. -isystem /usr/local/include -isystem /usr/X11R6/include -o sigName.o sigName.C
sigName.C:46: declaration of C function `char * strsignal(int)' conflicts with
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-5/../../../../include/string.h:70: previous declaration `const char * strsignal(int)' here
make[1]: *** [sigName.o] Error 1
---------------------------------------------------------------------------
/usr/include/string.h:70 is :
const char *_EXFUN(strsignal, (int __signo));
ddd-3.2.1/ddd/sigName.c:46 is :
extern "C" char *strsignal(int signo);
Making it ( extern "C" const char *strsignal(int signo); ) causes other errors in ddd.
Changing the cygwin's string.h does not work, either.
What should I do?
More information about the Cygwin
mailing list