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