Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-12-23 07:07:34

On Wednesday 22 December 2004 16:13, TEMPLIE Cédric wrote:
> I attach result file of tests I made...
> One with the bjam of M10, and the other one with the bjam you provide to
> me.

Ok, I finally see the problem (with msvc). However, I've lost track of what
you're trying to do. Here's part of the error message:

error: another virtual target { common%common.copy-project1.STAGED_SHARED_LIB
{ common%common.copy-project1.STAGED_SHARED_LIB
{ msvc%msvc.compile.c++-project1.OBJ{ project1.CPP } } } } }

V2 is trying to stage already staged target to the same location, and detects
that it's something bad. There are two issues:

1. Why V2 is trying to do that
2. Why are you linking to staged lib

The first question has a technical answer: your "lib project2 " links to
result of staging "lib project1". There are two targets -- import lib and
dynamic lib. The first is used during linking project2, but the second is
not. So, building project2 returns three two Boost.Build targets -- dll
project2, import lib project2 and dll project1. All of them are staged.
I probably could do something about it, but here some the second question.

The second question was already asked by Pedro -- why are you linking to
staged library? I don't see any reason why you should. Could you clarify?

- Volodya


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