I have recently installed a full installation of redhat 7.2.
gcc -v shows:
Reading specs from /usr/lib/gcc-lib/i386-redh
at-linux/2
.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
whereas gcc3 -v shows:
Reading specs from /usr/lib/gcc-lib/i386-redh
at-linux/3
.0.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux
Thread model: posix
gcc version 3.0.2 20010905 (Red Hat Linux 7.1 3.0.1-3)
rpm -qa | grep "c++" gives:
libstdc++3-devel-3.0.1-3
gcc-c++-2.96-98
libstdc++3-3.0.1-3
libstdc++-2.96-98
libstdc++-devel-2.96-98
gcc3-c++-3.0.1-3
This means that though both gcc2.96 and gcc3 are installed, gcc 2.96 is set as the default version.
I want all gcc 3 to be set as my default compiler. Thats if running gcc, g++ and c++, all should invoke the version 3 compiler and not the 2.96 one.
How can I do that? I tried removing both gcc packages and then reinstalling on gcc 3, but that didnt install g++ and c++.
To got those executables I had to re-install gcc 2.96. Why?
What should I do?
Thanks in advance,
Sarah.
Start Free Trial