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/

Reply via email to