Header files in OSX

WallstreetG3

Registered
Hey guys. I installed OSX and the dev tools package, but I still cannot find "stdio.h" or "string.h" or any of those really simple .h files anywhere on my system. I need them to compile stuff...where can I get them, and how?
 
they're in /usr/include, same as virtually every other unix system. why do you need to find them though? just #include <stdio.h> and let the compiler know where it is.
 
I might not be doing this right. I do see that there are some header files there, but I dont have stdio.h which is required for one of the programs I am trying to install.

[localhost:/usr/lib] nas% cd /usr/include
[localhost:/usr/include] nas% find . | grep stdio.h
[localhost:/usr/include] nas%



I get nothing.
 
i have it in mine. i don t know why you wouldn t
Code:
[phlegethon:/usr/include] lethe% ls | grep stdio.h
stdio.h
 
[odin:~] nas% ls /usr/include/
FlexLexer.h float.h inttypes.h stdarg.h stdint.h varargs.h
assert.h gcc machine stdbool.h va-ppc.h
[odin:~] nas%
 
That's definitely not what it should be after a devtools install; when you installed the devtools stuff, did you include the DevSDK package (which is where a ton of header files come from)?
 
Back
Top