I recently installed gcc-4.9 on Ubuntu 12.04 but when I type gcc -v it says gcc version 4.6.3.
The gcc 4.9 version was installed using the following command as root sudo apt-get install gcc-4.9
I recently installed gcc-4.9 on Ubuntu 12.04 but when I type gcc -v it says gcc version 4.6.3.
The gcc 4.9 version was installed using the following command as root sudo apt-get install gcc-4.9
gcc-4.9
instead ofgcc
) or modify the/usr/bin/gcc
symlink, either manually or by putting gcc into theupdate-alternatives
mechanism. – steeldriver Aug 02 '14 at 13:33