Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2003-03-26 14:28:28

Richard Smith <richard_at_[hidden]> writes:

> Apologies is this is a know issue -- a brief search of the
> archives didn't turn anything up.
> I have several copies of gcc installed on my machine and
> need to select the particular one with which to compile
> boost. The gcc-tools documentation suggests that doing
> bjam -sGXX=g++-3.2.1
> ought to do the right thing, however it appears not to.
> Looking through the boost-base.jam, it appears that the
> problem is that the variable that the user uses to set the
> compiler has the same name as the internal flag for the
> compiler name, and so the include-tools rule resets both.
> Assuming this is a bug not a feature, the attached patch to
> gcc-tools.jam fixes this by renaming the flag GXX_NAME (and
> similarly for GCC).

It's a known issue. The workaround is to make a new toolset:

extends-toolset gcc ;
GXX = g++-3.2.1 ;

stick that in $BOOST_ROOT/tools/build or in your BOOST_BUILD_PATH.


Dave Abrahams
Boost Consulting

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at