From: Larry Evans (cppljevans_at_[hidden])
Date: 2004-10-24 06:54:09


On 10/24/2004 12:54 AM, David B. Held wrote:
> unit_test_log.o: In function
> `boost::unit_test::unit_test_log::unit_test_log()':
> unit_test_log.o(.text+0x17e): undefined reference to
> `boost::unit_test::ut_detai
> l::msvc65_like_log_formatter::msvc65_like_log_formatter(boost::unit_test::unit_t
[snip]
> This is from the latest CVS update. Any idea how to fix it?
>

I got something like this, and resorted to just lumping all the
$(UTF_SOURCES) sources with the main program:

   run smart_ptr_test.cpp $(UTF_SOURCES)

where UTF_SOURCES was coped from libs/test/build/Jamfile.v2. Then
I "evolved" to:

   project
     : requirements
         <library>../../../../libs/test/build//boost_unit_test_framework
     : default-build debug
     ;

   run smart_ptr_test.cpp
       ../../../../libs/test/build//boost_unit_test_framework
     ;

I'd thought that the <library> under project would do it, but apparently
not.

Anyway, I don't understand bjam very well, but the above seems to work
on linux, at least.

HTH.