I'm a linux virgin and have only been programming c++ for 2 weeks, so please bear with me.
I'm trying to set the default g++ to 4.7.2 which I'm told by my host is installed (I'm also told that c++11 is also installed); however, neither of us know how to set the default g++ to 4.7.2 because
g++ --version gives
g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I tried these
sudo commands here, but I just found out that they don't work because CentOS uses
How can I set the default g++ to 4.7.2 (if it's even installed) on CentOS 5.9?