My main aim is to find the version of GCC compiler installed on linux box.
Case 1:
When i use gcc -v i get the foll. O/P
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux7/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-128)
case 2:
when i use cat/proc/version
Linux version 2.4.21-47.ELsmp (bhcompile@hs20-bc1-1.build.redhat.com) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-54)) #1 SMP Wed Jul 5 20:38:41 EDT 2006
So which version of GCC compiler been installed on linux box?? its 2.96 or 3.2.3??? or else am i looking at some other version???