Boost logo

Boost-Build :

From: Andre Hentz (gclbb-jamboost_at_[hidden])
Date: 2003-03-27 17:43:22

link against libraries with different names under different toolsets

My solution:
project a ;
lib b : : <name>libb <toolset>gcc ;
lib b : : <name>b <toolset>msvc ;
lib a : main.cpp b : <link>static ;
# somehow the problem goest away with <link>shared

The error:
error: Duplicate name of actual target: <.>b
previous virtual target { b.SEARCHED_LIB }
another virtual target { b.SEARCHED_LIB }

I hacked virtual-target.jam to allow two searched-libs with the same name
but I'm afraid that is not the rigth solution. Anyone cares to shed some
light on this? Obviously, one can (sometimes) rename the libraries or use
an 'if' clause (not very elegant).

Thanks in advance,

Andre Hentz


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