How to install and run multiple versions of GCC compilers
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
Hi Rgudis1,
What kind of errors do you get?
Trying to install a very out dated GCC compiler might break your RHEL 7.3 installation. You might need to install a glibc library that is incompatible with the kernel.
Late 1990's, is it even written in ANSI C++ and not a native dialect for another Operating System?
Regards,
Jan Gerrit Kootstra
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
