It's very common to have multiple GCC versions for different reasons, as annoying as it is. Some newer/older programs only compile properly or at all on specific versions.
You can export the following variable CC:
export CC=gcc-4.1
Replace gcc-4.1 with the filename of the gcc you want eg. gcc-99
gcc, compile, via, cc, variable, multiple, versions, newer, programs, export, filename, eg,