I have a 64 bit Cygwin on my 64 bit Win7.
I installed gcc-core and gcc-g++ packages.
I made a simple C program:
#include <stdio.h>
int main() {
exit(0);
}
when I compile with: gcc-c test.c I got:
fatal error: stdio.h: No such file or directory
Doing it with -v flag I see:
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-pc-cygwin/4.8.3/include
/usr/lib/gcc/x86_64-pc-cygwin/4.8.3/include-fixed
/usr/include
/usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../lib/../include/w32api
End of search list.
GNU C (GCC) version 4.8.3 (x86_64-pc-cygwin)
The stdio.h which comes with gcc-core package is present on my pc at this location (which is fine according to Cygwin's package searcher also):
/usr/lib/gcc/x86_64-pc-cygwin/4.8.3/include/ssp/stdio.h
What it means that ssp directory and why stdio.h is placed there ?
Why gcc cannot find stdio.h present at this location ?
#include <stdio.h>, not#include <stdio.h>. I've fixed your question's formatting; please verify that it's still accurate. Andexitrequires#include <stdlib.h>, though that's not the cause of your problem./usr/include/stdio.hwhich is missing on my machine. I also dont have string.h and stdlib.h in/usr/include/on my machine. So something went corrupted while cygwin-devel was installed ??? The cygwin-setup reports cygwin-devel package as installed (Keep) however I have 85 files in /usr/include/ in my machine compared to 112 which I have on the other machine where works