How to downgrade gcc 3.4.3 to 3.2.3
Peter Cech
pcech@vision.ee.ethz.ch
Sat Apr 7 15:11:00 GMT 2007
On Fri, Apr 06, 2007 at 20:35:32 +0530, Madhura Upadhya wrote:
> Thanks Andrew. I have a follow up question.
>
> Is it possible to have 2 differnt versions and is it possible to change
> the gcc compiler dynamically ?
In addition to what Andrew said in the other reply, most build systems
respect CC, CXX and CPP environmental variables. Just set them before
running configure or when running make:
make CC=/.../gcc-3.2.3/bin/gcc CXX=/.../g++ CPP=/.../cpp
Also beware that C++ ABI changed in gcc 3.4, so you'll run into trouble
if you mix C++ libraries compiled with versions 3.2 and 3.4. Watch for
linker warnings or test with ldd that your executable is linking against
only one version of libstdc++.so.
Regards,
Peter
More information about the Gcc-help
mailing list