Compiling errors (stdio.h not found)

bdr00

Registered
hi,

i am trying to compile jhead for osx, i have installed developer tools to get cc/make working ... but when i try to compile i get the errors:

> header file 'stdio.h' not found

i had a poke around in /usr/lib/ but couldn't find it? has something gone wrong with my cc install or is it hidden somewhere else where i need to set some enviroment variables???

thanks a lot for your help...

ben
 
Check /Developer/Documentation/DeveloperTools/Compiler
directory for documentation.

file://localhost/Developer/Documentation/DeveloperTools/Compiler/Compiler.d.html#pgfId=5068

This one has docs on #include paths
 
I just tried compiling this and it worked:

#include <stdio.h>

int main(int argc, char *argv[])
{
printf ("Hello World!\n");
}


I found stdio.h living in the /usr/include directory. There was nothing special about my environment; there was no reference to an include directory. Likewise there was no reference to an include directory in my ~/.MacOSX/environment.plist file.

It sounds like there's something amiss on your system, but I'm not sure what it might be.
 
Back
Top