Specifying which version of gcc to use when compiling boost

Hello all, I have a system with both gcc version 3.4 and gcc version 3.2 installed (distro is RHE4). I am trying to compile the filesystem package using 3.2 but for some reason it always seem to pick gcc 3.4. I tried the following (as specified in section 5.2.2 of the unix getting started guide) : ./configure .. -with-toolset=gcc-3.2.3 Performing a make after that tells me that it doesn't know anything about the tool and then give me a list of tool (basically all tools name with no version) Doing this however works but it uses version 3.4 ./configure .. -with-toolset=gcc Both cc and gcc executable points to gcc 3.2.3 the version that I want to use. Anybody can point me out what I am missing ? Thanks in advance ! Simon

AMDG Simon Lacroix wrote:
I have a system with both gcc version 3.4 and gcc version 3.2 installed (distro is RHE4). I am trying to compile the filesystem package using 3.2 but for some reason it always seem to pick gcc 3.4.
You'll need to use bjam directly http://www.boost.org/doc/libs/1_35_0/more/getting_started/unix-variants.html... In Christ, Steven Watanabe

on Tue Jul 29 2008, "Simon Lacroix"
Hello all,
I have a system with both gcc version 3.4 and gcc version 3.2 installed (distro is RHE4). I am trying to compile the filesystem package using 3.2 but for some reason it always seem to pick gcc 3.4.
I tried the following (as specified in section 5.2.2 of the unix getting started guide) :
./configure .. -with-toolset=gcc-3.2.3
Performing a make after that tells me that it doesn't know anything about the tool and then give me a list of tool (basically all tools name with no version)
Doing this however works but it uses version 3.4
./configure .. -with-toolset=gcc
Both cc and gcc executable points to gcc 3.2.3 the version that I want to use.
Anybody can point me out what I am missing ?
try putting a file called "user-config.jam" in your home directory, containing: using gcc : 3.2 : /path/to/gcc-3.2/binary/g++ ; using gcc : 3.4 ; That *should* make things work for you. -- Dave Abrahams BoostPro Computing http://www.boostpro.com
participants (3)
-
David Abrahams
-
Simon Lacroix
-
Steven Watanabe