Conflict between w32api/winsock.h and cygwin/in.h@compile time
Igor Pechtchanski
pechtcha@cs.nyu.edu
Fri Apr 25 17:59:00 GMT 2003
James,
According to the list description at
<http://cygwin.com/lists.html#cygwin-apps>, this is the wrong list for
your inquiry. The correct list would be <cygwin at cygwin dot com>. I'm
redirecting your message there. Please remove <cygwin-apps at cygwin dot
com> from further discussion.
Igor
On Fri, 25 Apr 2003, Liang, James wrote:
> 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
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Knowledge is an unending adventure at the edge of uncertainty.
-- Leto II
More information about the Cygwin-apps
mailing list