This is the mail archive of the
cygwin
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
> >-I../include/
> > ^^^^^^^^^^^
> >> [...]
> >> So did I miss a flag in order to compile, or a bad location, or is it a
> >bug
> >> ??
> >
> >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
> >application.
> >
>
> 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
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/