如何检查Eclipse的gcc c++编译器版本?
I'm using Eclipse release version 3.7.0, but I can't find the gcc anywhere. How and where can I see the version of gcc I'm currently using?
我正在使用Eclipse发行版3.7.0,但是我在任何地方都找不到gcc。我如何以及在哪里可以看到我正在使用的gcc版本?
5 个解决方案
####1
<p><i></i>76 <i></i></p>
Just type
只要输入
gcc --version
in any terminal near you.. ;-)
在你附近的任何一个终点站。:-)
####2
8
gcc -dumpversion
-dumpversion Print the compiler version (for example, 3.0) — and don't do anything else.
-dumpversion打印编译器版本(例如3.0)-不做任何其他事情。
####3
6
The answer is:
答案是:
gcc --version
Rather than searching on forums, for any possible option you can always type:
不要在论坛上搜索,任何可能的选项你都可以输入:
gcc --help
haha! :)
哈哈!:)
####4
4
include
int main() {
printf("gcc version: %d.%d.%d\n",GNUC,GNUC_MINOR,GNUC_PATCHLEVEL);
return 0;
}
####5
1
you can also use gcc -v command that works like gcc --version and if you would like to now where gcc is you can use whereis gcc command
您还可以使用gcc -v命令,它的工作方式与gcc类似,如果您愿意,现在可以使用gcc命令。
I hope it'll be usefull
我希望它会有用
####1
<p><i></i>76 <i></i></p>
Just type
只要输入
gcc --version
in any terminal near you.. ;-)
在你附近的任何一个终点站。:-)
####2
8
gcc -dumpversion
-dumpversion Print the compiler version (for example, 3.0) — and don't do anything else.
-dumpversion打印编译器版本(例如3.0)-不做任何其他事情。
####3
6
The answer is:
答案是:
gcc --version
Rather than searching on forums, for any possible option you can always type:
不要在论坛上搜索,任何可能的选项你都可以输入:
gcc --help
haha! :)
哈哈!:)
####4
4
include
int main() {
printf("gcc version: %d.%d.%d\n",GNUC,GNUC_MINOR,GNUC_PATCHLEVEL);
return 0;
}
####5
1
you can also use gcc -v command that works like gcc --version and if you would like to now where gcc is you can use whereis gcc command
您还可以使用gcc -v命令,它的工作方式与gcc类似,如果您愿意,现在可以使用gcc命令。
I hope it'll be usefull
我希望它会有用