Boost logo

Boost-Build :

From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2006-03-10 14:54:29

OK, I separated a simple test case completely outside of my source code
tree. I believe the only thing that's used from my usual configuration is
site-config.jam, with the following content:

import toolset : using ;
using msvc : 8.0 ;
using msvc : 7.1 ;
using gcc ;
using como-win ;

I simplified my test case to the point of only distinguishing between
msvc-7.1 and msvc-8.0, that is, I don't have the additional alternatives for
<release> or <debug>.

So, in this isolated folder I have a single file, jamroot, with the
following in it:

lib a : : <toolset>msvc-7.1 <file>a1 ;
lib a : : <toolset>msvc-8.0 <file>a2 ;
exe b : a ;

I launch bjam like so:

bjam variant=release toolset=msvc-7.1 -n

I get this output:

warning: toolset gcc initialization: can't find tool g++
warning: initialized from
C:/code/bin/boost-build/build\targets.jam:756: in generate-really from
module object(main-target)@56
error: failed to build ./a with properties <debug-symbols>off <define>NDEBUG
<inlining>full <optimization>speed <runtime-debugging>off
<toolset-msvc:version>7.1 <toolset>msvc <variant>release because no
best-matching alternative could be found
C:/code/bin/boost-build/build\targets.jam:737: in
object(main-target)@56.generate from module object(main-target)@56
C:/code/bin/boost-build/build\targets.jam:252: in
object(project-target)@46.generate from module object(project-target)@46
C:/code/bin/boost-build\build-system.jam:291: in load from module
C:\code\bin\boost-build\kernel\modules.jam:261: in import from module
C:\code\bin\boost-build\kernel\bootstrap.jam:121: in boost-build from module
C:\code\bin\boost-build.jam:6: in module scope from module

Please let me know if I am doing something wrong.


----- Original Message -----
From: "Pedro Lamarão" <pedro.lamarao_at_[hidden]>
To: <boost-build_at_[hidden]>
Sent: Friday, March 10, 2006 6:34 AM
Subject: Re: [Boost-build] Seleting alternatives based on multiple

Emil Dotchevski escreveu:

> When I try to build and request (for example) toolset=msvc-7.1 and
> variant=release on the command line, Boost-Build fails with an error
> message
> which says that it couldn't find a best match for the target to use.

This works for me.
Could you give us more detail about your configuration?

 Pedro Lamarão
Unsubscribe & other changes:

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