Boost logo

Boost-Build :

From: Pedro Ferreira (pedro.ferreira_at_[hidden])
Date: 2003-12-05 12:10:17


------=_NextPart_001_0002_01C3BB52.A7B36490 Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,

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've attached a project that reproduces this but basically it happens with =
something like:

lib a : A1/A.cpp A2/A.cpp : <link>static ;=20
stage stage : a ;

BBv2 reports:

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 virtua=
l targets having the same name independently of the location of the sources=
.

Any hope of solving this easily?

Regards,

Pedro

 ------=_NextPart_001_0002_01C3BB52.A7B36490 Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1"=
>
<META content=3D"MSHTML 6.00.2734.1600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I found a problem&nbsp;that causes&nbsp;a=
=20
'Duplicate name of actual target' error </FONT><FONT face=3DArial size=3D2>=
(I really=20
can't remember if this has already been brought up by anyone).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I've attached a project that reproduces th=
is but=20
basically it happens with something like:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>lib a : A1/A.cpp A2/A.cpp : &lt;link&gt;st=
atic ;=20
<BR>stage stage : a ;<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>BBv2 reports:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT>
<DIV><FONT face=3DArial size=3D2>error: Duplicate name of actual target:=20
&lt;./msvc-7.0/debug/link-static&gt;A.obj<BR>previous virtual target {=20
msvc%msvc.compile.c++-A.OBJ { A1/A.CPP } }<BR>another virtual target {=20
msvc%msvc.compile.c++-A.OBJ { A2/A.CPP } }</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I think this boils down to the restructuri=
ng of the=20
target paths and virtual targets having the same name independently of the=
=20
location of the sources.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any hope of solving this easily?</FONT></D=
IV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Pedro</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT></BODY></HTML>
 ------=_NextPart_001_0002_01C3BB52.A7B36490-- ------=_NextPart_000_0001_01C3BB52.A7B36490 Content-Type: application/x-zip-compressed;
name="TestDuplicates.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="TestDuplicates.zip"

[Attachment content not displayed.] ------=_NextPart_000_0001_01C3BB52.A7B36490--


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