Boost logo

Boost-Build :

Subject: [Boost-build] issue with <link>
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-01-02 13:20:12

I have following issue with compilation of one of the unit tests from
Boost.Test which uses single-header version of Program Execution Monitor
(no linking, just single included header). Boost.Test Jamfile has
following lines:

project boost/test
     : source-location ../src
     : requirements <link>shared:<define>BOOST_TEST_DYN_LINK=1
     : usage-requirements


alias included : : : :

Boost.Test's test Jamfile has following lines:

test-suite "prg_exec_monitor_test"
         : [ test-btl-lib run-fail : prg_exec_fail1 : included ]

which results in something like:

run-fail prg_exec_fail1 ../build//included ;

bjam compilation produces:







     call "C:\Compilers\Microsoft Visual Studio .NET
2003\Vc7\bin\vcvars32.bat" >nul
cl /Zm800 -nologo

cl : Command line warning D4025 : overriding '/EHs' with '/EHa'
..\..\..\boost\test\impl\execution_monitor.ipp(1018) : warning C4273:
'boost::execution_monitor::catch_signals' : inconsistent dll linkage
..\..\..\boost\test\impl\execution_monitor.ipp(1088) : warning C4273:
'boost::execution_monitor::execute' : inconsistent dll linkage

It looks like <link>shared where applied even though I do not link with

The only way to circumvent this I found is to define

alias included : : : :

which does not seems right as well.

What is the right solution?


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