如何在mac上查看gcc版本号
程序员文章站
2022-03-11 15:05:37
linux能够很方便得查看gcc版本号,只需要输入gcc --version就能得到如下结果,能一目了然gcc版本是4.9.2gcc (GCC) 4.9.2Copyright (C) 2014 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS F...
linux能够很方便得查看gcc版本号,只需要输入gcc --version就能得到如下结果,能一目了然gcc版本是4.9.2
gcc (GCC) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
但在mac上直接输入:gcc --version,却显示如下:
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
而其实在mac上比较方便快捷的方法其实是gcc -dumpversion,可以直接得到版本号,而且在linux下同样奏效
4.2.1
本文地址:https://blog.csdn.net/zh515858237/article/details/107507080
上一篇: MongoDB进阶之动态字段设计详解
下一篇: 综合任务1:定时闹铃
推荐阅读