How do I check my gcc C++ compiler version for my Eclipse?
问题 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? 回答1: Just type gcc --version in any terminal near you.. ;-) 回答2: gcc -dumpversion -dumpversion Print the compiler version (for example, 3.0 ) — and don't do anything else. The same works for following compilers/aliases: cc -dumpversion g++ -dumpversion clang -dumpversion tcc -dumpversion Be careful with automate parsing the GCC output: Output of --version