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

RE: sockets and mingwin32

JP Shipherd[] wrote:
>but the cygwin headers keep creeping in and I get errors like:
>../i386-cygwin32/include/sys/types.h:131: warning: `FD_SET' redefined
>Is the i386-cygwin32/include path built into gcc (g++)?  It's not in any of
>my include env vars:
>declare -x
>declare -x

Indeed yes, and I just found out about the problem today (sorry, I should
have been more careful in my testing). Anyway it seems that cpp at least
does know something about standard include file locations. Fortunately
you can work around this problem by adding "-iprefix /mingw32/include/"
or some such to the cpp options in the Mingw32 specs file (line 8)
so that it looks like this:

%{posix:-D_POSIX_SOURCE} -iprefix /mingw32/include/

This seems to take care of that problem (I hope). There may still be
problems with winsock and Mingw32, but at least you'll be getting the
right header files.


-- Colin Peters -
-- Saga University Dept. of Information Science

For help on using this list, send a message to
"" with one line of text: "help".

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