This is the mail archive of the cygwin 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]

Re: Redefinition of `struct in6_addr'?

On Apr 24 19:53, Samuel Thibault wrote:
> Corinna Vinschen, le Wed 24 Apr 2013 19:51:07 +0200, a Ãcrit :
> > > > /usr/include/cygwin/in6.h:75:8: error: redefinition of âstruct in6_addrâ
> > > > /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/in6addr.h:17:16:
> > > > note: originally defined here
> > 
> > Don't know this file but this is a bug in config.h.  struct in6_addr
> > is defined in a system header, so it should not be gratuitously defined 
> > in a project header, especially if the definition collides with the
> > right one from the system header.
> Mmm, but here it's w32api definition vs cygwin definition.

Maybe I didn't read it exactly, but the bottom line here is, when
building for Cygwin, either use the POSIX network headers (preferredly),
or use winsock.h.  Mixing them is not supported.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Problem reports:
Unsubscribe info:

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