gcc 2.96 and gcc 3.2 together

Here is something that I learned this morning. It took me a while to find the correct answers, so here it is for future reference.

Red Hat 8.0 comes with gcc 3.2. If you need to use gcc 2.96, which several older packages still need. You need the following rpms to install it:

compat-gcc-7.3-2.96.110.i386.rpm
compat-gcc-c++-7.3-2.96.110.i386.rpm
compat-libstdc++-7.3-2.96.110.i386.rpm
compat-libstdc++-devel-7.3-2.96.110.i386.rpm

I used the apt-get rpm package on RH8 to get them all, but you can find them at rpmfind.net.

Now you can run a 2.96 gcc as: gcc296 and a 2.96 g++ as: g++296 You can do this export before you compile as well.