Re: How to downgrade gcc 3.4.3 to 3.2.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux