The question Choose gcc and g++ version answers how to do it, but I could not figure out, if it only affects me or also all the other users of the system as I have to use
sudo. I share a server (11.04) with other people and I am the only one who has to use gcc 4-4.
Set up personal links:
Then, run this whenever you start a new shell, or add it to your .bash_profile, or whatever:
And you're done! :)