How to install and run multiple versions of GCC compilers

Latest response

I am trying to compile C++ source code that was developed in late 1990's. I believe the author developed and tested the code using GCC compiler that was the latest at that time (I guess it might be GCC-2.8.0). When I tried to compile the source code using gcc-4.8.5 that is installed on my system I am running into several compilation errors. I thought these problems could be resolved by installing the GCC-2.8.0 compiler. So I want to know the procedure that I should use to install GCC 2.8.0 along with gcc-4.8.5. Does anybody know or have any experience doing this ? I am currently running RHEL 7.3 with gcc-4.8.5-11.

Responses