I have compiled the latest GCC 4.7.0, on my Linux Mint 12, using gcc 4.6.1 (default).
Compiler compiled successfully, steps followed
- make install
Binaries of gcc-4.7.0 are in /usr/local/bin/ after install step.
Now the goal is to make the new compiler the default while also keeping the old one around(no uninstall) i.e. I want to be able to do gcc a.c or g++ a.cpp directly in the terminal window.
I have been unable to find a proper series of steps that would help me accomplish this.
Also, doing /usr/local/bin/g++ hello-world.cpp generates iostream file/directory not found.
Any help is appreciated.