我對安裝了OS X Yosemite(10.10.5)的Mac上安裝的gcc版本感到困惑。我也安裝了Xcode v6.3.1。在Mac(Yosemite)上安裝了哪個版本的gcc
輸入下面的命令顯示以下信息:
gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
clang -v
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
which gcc
/usr/bin/gcc
which clang
/usr/bin/clang
據我所知,GCC不是別名鏗鏘。
有人請賜教我這是什麼意思?
有關'InstalledDir'的信息來自哪裏?當我運行'clang -v'時,我沒有看到。 – ksl
看起來我的鏗鏘至少比你的發佈更新,可能是新的,這是我的猜測。嘗試更新您的xcode。 – echristo