Where are the header files for C in Xcode?
I'm trying to开发者_如何学Go find the header files for things such as limits.h in XCode. Where do they exist? Thanks.
It depends on your target SDK. Usually, you will find them in
/Developer/SDKs/<insert SDK here>/usr/include
For example,
/Developer/SDKs/MacOSX10.4u.sdk/usr/include
- /usr/include/limits.h on my machine
That (/usr/include) is the normal place place for system headers on Unix-based machines. Sometimes, extensions have their code (headers, libraries) placed under /usr/local instead (/usr/local/include for headers, /usr/local/lib for libraries).
精彩评论