本文介绍了如何在mac上找到gcc版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Mac机上使用OS 10.9。我想知道我正在使用的gcc版本。所以我在终端上试过 gcc --version ,结果如下:
I am using OS 10.9 on mac machine. I want to know the version of gcc I am using. So I tried gcc --version on terminal and it results :
$ gcc --version Configured with: --prefix=/Applications/Xcode5-DP.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode5-DP.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1 Apple LLVM version 5.0 (clang-500.1.58) (based on LLVM 3.3svn) Target: x86_64-apple-darwin13.0.0 Thread model: posix在输出中,没有与gcc相关的细节,但clang在那里。我很困惑 gcc命令是否执行clang或者gcc(gnu)。
Here in output, there is no detail related to gcc but clang is there. I am confused whether gcc command executes clang or gcc(gnu).
推荐答案在你的路径上实际上有gcc。截至最近版本的Xcode,它安装了一个gcc,而不是链接到Clang。
You seem to not actually have gcc on your path. As of recent versions of Xcode, it installs a "gcc" that is instead a link to Clang.
更多推荐
如何在mac上找到gcc版本
发布评论