On our Red Hat Enterprise 4 machine we have two compilers installed. GCC version 3.4.6 which is installed as /usr/bin/gcc and /usr/bin/g++ and the newer GCC 4.1.0 which is installed as /usr/bin/gcc4 and /usr/bin/g++4.
As a total linux newbie I am attempting to build a program which requires the later compiler but the configure script always chooses the g++ compiler. Can anyone tell me how I go about specifying the later compiler and forcing the build to use gcc4?
don't know if you're still working on this issue, but...
Should you be running an autoconf "configure script" then you can
probably specify the compiler setting CC=/usr/bin/g++4 or similar.
(see Autoconf - Running configure Scripts)