Question

I'd like to take a look at the headers and want to know where they are.

Was it helpful?

Solution

After you install Xcode it's located here:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/c++/v1

Mac OS X 10.9+ no longer uses GCC/libstdc++ but uses libc++ and Clang.

Update: After the XCode 6.0.1 update the headers are now located here:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1

OTHER TIPS

/usr/lib/libc++.dylib it's a softlink.

lrwxr-xr-x  1 root  wheel       14 Oct 24 19:27 libc++.dylib -> libc++.1.dylib

/usr/lib/libc++.1.dylib is the current version.

-rwxr-xr-x  1 root  wheel  1405296 Oct 24 19:26 libc++.1.dylib

clang -print-search-dirs shows you where it builds code from

programs: =/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
libraries: =/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top