From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-11-11 10:39:14


Hi Johannes,

> It's not working:

> Changing this to
> print.text
> [ on $(targets[1])
> return -D$(DEFINES)
> ] ;
>
> yields
>
> $ bjam msvc debug
> C:/Development/Build/boost-build/build\virtual-target.jam:829: in
> virtual-target.register-actual-name from module virtual-target error:
> Duplicate name of actual target:
> <pComp\Zinc\example\bitmap\bin\msvc\debug\link-static\threading-multi\user-
>interface-gui>Bitmap1.rsp

Looks like I forgot something again. How the Jamfile in question looks? Is it
the case that both the source file and the finall exe are called Bitmap1? In
that case V2 tries to create to response files with exactly the same name for
compiling and for linking, which leads to the error. Try

generators.register-c-compiler msvc.compile.c++ : CPP : OBJ RSP(%_cpp) :
<toolset>msvc ;

so that the name of RSP file for compiling will have added "_cpp" suffix.

- Volodya