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
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
Are you compiling with cc in the Terminal, or in ProjectBuilder?
in the terminal...
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.
try this
Code:touch include/stdio.h
Bookmarks