These are the default gcc`s included with Ubuntu 14.04 :
gcc-4.4/g++-4.4, gcc-4.6/g++-4.6, gcc-4.7/g++-4.7, gcc-4.8/g++-4.8 ,,,
where "4.8" is the system compiler.
Switching compiler : $ export CC=gcc-4.4 CXX=g++4.4 && <other command>
But : You don't need any gcc packages to get libstdc++.so.5 :
http://packages.ubuntu.com/trusty/libstdc++5
.... Just install the package (may not be present in "the funny Package Manager") :
$ sudo apt-get install libstdc++5
Or install synaptic : $ sudo apt-get install synaptic
... to get a 'Package Manager' that has all available packages visible.
-