delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/30/18:54:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20020930225438.77013.qmail@web40208.mail.yahoo.com>
Date: Mon, 30 Sep 2002 15:54:38 -0700 (PDT)
From: Brian Rowe <schwaa98 AT yahoo DOT com>
Subject: Cygwin and NetHack - strncasecmp compile error
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

I am trying to compile nethack on cygwin.  If it done
let me know, and I will quite, but I haven't found it.
In /usr/include/string.h  the function strncasecmp is
defined.  This conflicts with line 688 in extern.h in
the cygwin files.
I want to resolve that, conflict, My C is rusty, like
5 years ago.
string.h
int	 _EXFUN(strcasecmp,(const char *, const char *));
688: extern.h
E int FDECL(strncmpi, (const char *,const char
*,int));

I don't understand why these lines conflict.  Here is
the error message:

gcc -O -I../include   -c -o hacklib.o hacklib.c
In file included from ../include/hack.h:107,
                 from hacklib.c:7:
../include/extern.h:688: conflicting types for
`strncasecmp'
/usr/include/string.h:65: previous declaration of
`strncasecmp'
make[1]: *** [hacklib.o] Error 1

Any thoughts on how I start to resolve this?

Thank you.


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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