View Full Version : g++ version

January 20th, 2006, 07:35 PM
I've recently installed Ubuntu on a 64-bit platform for really the main purpose of programming. I am a full time student with a major in computer programming, so Linux I think is the best route. For one of my classes we have to tell the professor which g++ compiler we are using, as its a class in c++. So I tried a g++ -ver, and got a "no input file" message. Am I missing something here or doing this wrong?

January 20th, 2006, 07:39 PM
hmm..i thght the option was -version or -v. Did you try
man g++ and grep for version ?

January 20th, 2006, 08:10 PM
[prompt@computer ~]$ g++ --help | grep version
-dumpversion Display the version of the compiler
-print-multi-directory Display the root directory for versions of libgcc
-V <version> Run gcc version number <version>, if installed
[prompt@computer ~]$ g++ -dumpversion
[prompt@computer ~]$

Hope that helps you.

January 20th, 2006, 08:36 PM
thank you both for the help, I had forgotten I could use those for information.

January 21st, 2006, 12:07 AM
The command
g++ --version also works