www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/30/04:15:16

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <002501c05aad$e7b03220$8b0c4ea8@kepri.re.kr>
From: "Jong B. Lee" <jbdoll AT kepri DOT re DOT kr>
To: <cygwin AT sources DOT redhat DOT com>
Subject: DDD : compile error
Date: Thu, 30 Nov 2000 18:14:12 +0900
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id EAA12035

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?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019