Trouble with include path
Mon Jan 31 15:43:00 GMT 2000
Rahul Kuchhal <email@example.com> writes:
> Hi! All,
> I am facing a problem due to the wrong path for system
> header files. I am trying to use header file
> <socket.h>. This file has a include statement for
> header file <if.h>.
> The error given by compiler is
> "if.h:63: parse error before `caddr_t`"
> As I believe this is due to non declaration of caddr_t
> structure. It has been declared in file
> But the compiler is picking up this file from area
> Can anybody tell me how can I configure the compiler
> so that it picks the file <types.h> from "include\sys"
> instead of "include\mingw32\sys"?
You cannot include Cygwin's socket.h from a Mingw application, sorry.
When you decide to use mno-cygwin, you're giving up on all the POSIX
stuff offered by Cygwin. You'll have to use winsock directly.
For more information on what mno-cygwin is, and more importantly, what
it isn't, see:
Want to unsubscribe from this list?
Send a message to firstname.lastname@example.org
More information about the Cygwin