- publishing free software manuals
An Introduction to GCC - for the GNU compilers gcc and g++
by Brian J. Gough, foreword by Richard M. Stallman
Paperback (6"x9"), 144 pages
ISBN 0954161793
RRP £12.95 ($19.95)

"A wonderfully thorough guide... well-written, seriously usable information" --- Linux User and Developer Magazine (Issue 40, June 2004) Get a printed copy>>>

9.2 Version numbers

You can find the version number of gcc using the version option:

$ gcc --version
gcc (GCC) 3.3.1

The version number is important when investigating compilation problems, since older versions of GCC may be missing some features that a program uses. The version number has the form major-version.minor-version or major-version.minor-version.micro-version, where the additional third "micro" version number (as shown above) is used for subsequent bug-fix releases in a release series.

More details about the version can be found using -v:

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686/3.3.1/specs
Configured with: ../configure --prefix=/usr
Thread model: posix
gcc version 3.3.1

This includes information on the build flags of the compiler itself and the installed configuration file, ‘specs’.

ISBN 0954161793An Introduction to GCC - for the GNU compilers gcc and g++See the print edition