我对安装了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