我想看看标题,想知道它们在哪里。
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
/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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.