Installing multiple versions of GCC

Jonathan Wakely jwakely.gcc@gmail.com
Tue Aug 28 18:23:00 GMT 2012


On 28 August 2012 18:24, niXman wrote:
> 2012/8/28 Jonathan Wakely:
>> The easiest way is to just put them in separate paths, i.e. with
>> different --prefix options to configure.
>
> In this case, to run the program, I must specify LD_LIBRARY_PATH?

Do you mean running a program compiled by GCC, or running GCC itself?

LDLIBRARY_PATH is one way to ensure programs find the dynamic libs
they depedn, on, but there are other choices:
http://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dynamic_or_shared.html#manual.intro.using.linkage.dynamic



More information about the Gcc-help mailing list