This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

DDD : compile error


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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]