This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
DDD : compile error
- To: <cygwin at sources dot redhat dot com>
- Subject: DDD : compile error
- From: "Jong B. Lee" <jbdoll at kepri dot re dot kr>
- Date: Thu, 30 Nov 2000 18:14:12 +0900
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?