How to know gcc version in Linux, Unix, sunOS
To know gcc vesrion in Linux Ubuntu and Unix:
$gcc -v gcc version 3.4.6 20060404 (Red Hat 3.4.6-4)
For Solaris SunOS:
$ pkginfo -l | grep gcc PKGINST: SMCgcc342 NAME: gcc
Try that command should tell you what gcc you have 3.4.2 is version im running