I want to compile my program with the latest version of
Ubuntu 14.04 comes with gcc 4.8.2, however there's 4.9.0 available, moreover, I see that it is available as a package:
gcc-4.9. I tried to install it
sudo apt-get install gcc-4.9
but it says
Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'gcc-4.9-base' for regex 'gcc-4.9' gcc-4.9-base is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Looks like it is already installed, just not as the default one? How do I utilize it to build my program?