Subject: Re: [boost] Bjam outside Boost tree
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-10-04 18:33:03


AMDG

Jean-Louis Leroy wrote:
>> If I'm not wrong you need to add \tools\build\v2 on the
>> BOOST_BUILD_PATH setting
>>
>> BOOST_BUILD_PATH="C:\Users\JLL\Documents\Visual Studio
>> 2008\Projects\boost_1_40_0\tools\build\v2"
>
> I got closer to making it work with:
> [ run test.cpp $(boost-build)libs/test/build//boost_test_exec_monitor
>
> Now everything compiles but I get link errors:
>
> msvc.link
> ..\..\..\bin.v2\libs\rdb\test\test.test\msvc-9.0express\debug\link-static\test.exe
>
> test.obj : error LNK2019: unresolved external symbol "class
> boost::unit_test::master_test_suite_t & __cdecl boost::unit_
> test::framework::master_test_suite(void)"
> (?master_test_suite_at_framework@unit_test_at_boost@@YAAAVmaster_test_suite_t_at_23@XZ)
>
> referenced in function "class boost::unit_test::test_suite * __cdecl
> init_unit_test_suite(int,char * * const)" (?init_u
> nit_test_suite@@YAPAVtest_suite_at_unit_test_at_boost@@HQAPAD_at_Z)

You need to link to boost_unit_test_framework instead of
boost_test_exec_monitor.

>> Do you have a Jamroot.jam file on your project directory?
>
> A Jamroot (sans extension), copied from the boost tree.

Don't copy it. You can just create an empty Jamroot.jam.

In Christ,
Steven Watanabe