Boost logo

Boost-Build :

From: Craig Rodrigues (rodrigc_at_[hidden])
Date: 2005-08-04 15:05:45


Hi,

I am trying an experiment. I have an empty user-config.jam,
and empty site-config.jam, and do not have those files in my home
directory.

I have a Jamroot which contains:

import toolset : using ;

using gcc : default ;
using gcc : 4.0 : g++-4.0 ;

lib a : a.cpp ;

If I try to build library a,
it uses g++ to compile it instead of g++-4.0.

Why is this? Shouldn't specifying "using gcc " the second time
"override" the first setting?

I'm not 100% familiar with how this toolset initialization works.

Basically, what I want to do is to put:
using gcc : default ;

in my site-config.jam, so that by default, bjam will select the system
version of gcc installed.
In one particular Jamfile or Jamroot, I want to specify:

using gcc : 4.0 : g++-4.0 ;

because I only want to use g++-4.0 for one particular library.

I tried to follow the instructions at:
http://www.boost.org/doc/html/bbv2/advanced.html

but it didn't work.

Thanks.

-- 
Craig Rodrigues 
rodrigc_at_[hidden]
 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk