PDA

View Full Version : g++ version



sraised2the3rd
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?

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

Casey
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
3.4.4
[prompt@computer ~]$


Hope that helps you.

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

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