This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Mingwin does not seem to know where its headers live.


I am trying to compile this code.

BASH.EXE-2.03$ cat WIN32.C
#include <string.h>
#include <direct.h>

int main(int argc, char ** argv) {
    strcpy(NULL,NULL);
    mkdir(NULL);
    return 0;
}


When I build with mingwin, it bails out
saying it can not find direct.h.

BASH.EXE-2.03$ gcc -mno-cygwin -c WIN32.C
WIN32.C:2: direct.h: No such file or directory

But, if I provide the fully qualified path name
of mingwin's header directory it compiles.

BASH.EXE-2.03$ gcc -mno-cygwin -c WIN32.C
-I/usr/i686-pc-cygwin/include/mingw


Why does mingwin not know where its own
headers live? Am I doing something wrong?

Mo Dejong
Red Hat Inc.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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