This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Having multiple GCC Version at the same time


Olivier Delannoy wrote:
Hello,
I am trying to have various GCC environment in parallel to make some
You can completely separate two GCC environments alternating installation root with --prefix=PREFIX option of configure script. Thus you can switch between configurations overriding PATH and LD_LIBRARY_PATH like this:
PATH=$PREFIX/bin:$PATH
LD_LIBRARY_PATH=$PREFIX/lib64:$LD_LIBRARY_PATH
LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH


Otherwise you can use same installation prefix for all configurations and switch between compilers using '-V_version_' option of gcc driver.

environment. Does C libraries have to be available for the various
compiler version ? Does C++ libraries have to be available for the
various compiler version ?
Yes.

- Grigory


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]