This is the mail archive of the
mailing list for the Cygwin project.
Re: sockets pbs..
On Jan 31 10:52, jano trouba wrote:
> And also I do not understand :
> >> cc -Wall -D_POSIX_SOURCE -D__rtems__ -mno-cygwin -mwindows
> > ^^^^^^^^^^^
> >> [...]
> >> So did I miss a flag in order to compile, or a bad location, or is it a
> >> ??
> >No, you used a flag too many. The Cygwin header files and Cygwin
> >capabilities don't make any sense when trying to build a native Windows
> the -mno-cygwin flag means NOT to use cygwin-sepcific things, no ?
> So how come by including sys/socket.h do I find myself including
> cygwin/socket.h ?????
sys/socket.h is also a Cygwin thingy. Only the include files under
/usr/include/w32api and /usr/include/mingw are useful for non-cygwin
apps. If you want to use the POSIX headers, build a Cygwin app.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html