如何在mac上找到gcc版本

编程入门 行业动态 更新时间:2024-10-27 02:23:40
本文介绍了如何在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版本

本文发布于:2023-11-03 01:11:26,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:版本   如何在   mac   gcc

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!