This is the mail archive of the cygwin-apps@cygwin.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]
Other format: [Raw text]

Conflict between w32api/winsock.h and cygwin/in.h at compiletime


I'm trying to compile some sample code from IDT and got the below warnings
and errors.  Is this
the correct list to contact?  How can I address this problem?


/usr/include/w32api/winsock.h:202: warning: `IN_CLASSA' redefined
/usr/include/cygwin/in.h:113: warning: this is the location of the previous
definition
/usr/include/w32api/winsock.h:205: warning: `IN_CLASSA_HOST' redefined
/usr/include/cygwin/in.h:116: warning: this is the location of the previous
definition
/usr/include/w32api/winsock.h:207: warning: `IN_CLASSB' redefined
/usr/include/cygwin/in.h:119: warning: this is the location of the previous
definition
/usr/include/w32api/winsock.h:210: warning: `IN_CLASSB_HOST' redefined
/usr/include/cygwin/in.h:122: warning: this is the location of the previous
definition
/usr/include/w32api/winsock.h:212: warning: `IN_CLASSC' redefined
/usr/include/cygwin/in.h:125: warning: this is the location of the previous
definition
/usr/include/w32api/winsock.h:215: warning: `IN_CLASSC_HOST' redefined
/usr/include/cygwin/in.h:128: warning: this is the location of the previous
definition
/usr/include/w32api/winsock.h:216: warning: `INADDR_ANY' redefined
/usr/include/cygwin/in.h:138: warning: this is the location of the previous
definition
/usr/include/w32api/winsock.h:218: warning: `INADDR_BROADCAST' redefined
/usr/include/cygwin/in.h:141: warning: this is the location of the previous
definition
In file included from ../acl_parser.c:32:
../../../include/platform/sol_types.h:35: warning: redefinition of `ssize_t'
/usr/include/sys/types.h:140: warning: `ssize_t' previously declared here
In file included from ../../../include/platform/sol_socket.h:23,
                 from ../acl_parser.c:40:
/usr/include/w32api/winsock.h:189: redefinition of `struct in_addr'
/usr/include/w32api/winsock.h:220: redefinition of `struct sockaddr_in'
/usr/include/w32api/winsock.h:274: redefinition of `struct ip_mreq'
/usr/include/w32api/winsock.h:435: conflicting types for `inet_addr'
/usr/include/arpa/inet.h:22: previous declaration of `inet_addr'
/usr/include/w32api/winsock.h:436: conflicting types for `inet_ntoa'
/usr/include/arpa/inet.h:28: previous declaration of `inet_ntoa'

James Z. Liang
Dept 5931
Sandia National Laboratories
505-284-9933
jliang at sandia dot gov




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