Boost logo

Boost-Build :

From: Jürgen Hunold (hunold+lists.Boost_at_[hidden])
Date: 2003-12-05 16:00:53


Hi !

Am Freitag, 5. Dezember 2003 18:10 schrieb Pedro Ferreira:
> I found a problem that causes a 'Duplicate name of actual target'
> error (I really can't remember if this has already been brought up by
> anyone).

I doubt this.

> I've attached a project that reproduces this but basically it happens
> with something like:
>
> lib a : A1/A.cpp A2/A.cpp : <link>static ;
> stage stage : a ;
>

> error: Duplicate name of actual target:
> <./msvc-7.0/debug/link-static>A.obj previous virtual target {
> msvc%msvc.compile.c++-A.OBJ { A1/A.CPP } } another virtual target {
> msvc%msvc.compile.c++-A.OBJ { A2/A.CPP } }
>
> I think this boils down to the restructuring of the target paths and
> virtual targets having the same name independently of the location of
> the sources.

I've got a similar problem. This appears after the virtual target
changes. I should have tested on Win32, too.

Sorry, Volodya !
I specify

lib alib : : <name> a.lib ;
alias a : extra.obj allib;

and on toplevel Jamfile, a similar message appears.
Building from sub-projects works fine.

> Any hope of solving this easily?

I could try to build a test case on Monday if needed.

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold ! Institut für Verkehrswesen, Eisenbahnbau
* voice: ++49 511 762-2529 ! und -betrieb, Universität Hannover
* fax : ++49 511 762-3001 ! Appelstrasse 9a, D-30167 Hannover
* hunold_at_[hidden] ! www.ive.uni-hannover.de
 

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