[Test] Linking problems

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 est_log const&)' unit_test_log.o: In function `boost::unit_test::unit_test_log::unit_test_log()': unit_test_log.o(.text+0x270): undefined reference to `boost::unit_test::ut_detai l::msvc65_like_log_formatter::msvc65_like_log_formatter(boost::unit_test::unit_t est_log const&)' unit_test_log.o: In function `boost::unit_test::unit_test_log::set_log_format(bo ost::unit_test::basic_cstring<char const>)': unit_test_log.o(.text+0x1000): undefined reference to `boost::unit_test::ut_deta il::msvc65_like_log_formatter::msvc65_like_log_formatter(boost::unit_test::unit_ test_log const&)' unit_test_log.o(.text+0x1056): undefined reference to `boost::unit_test::ut_deta il::xml_log_formatter::xml_log_formatter(boost::unit_test::unit_test_log const&) ' This is from the latest CVS update. Any idea how to fix it? Dave

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.

Larry Evans wrote:
On 10/24/2004 12:54 AM, David B. Held wrote: [...] 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) [...]
Well, I haven't tackled BJam yet, so I'm just writing a makefile by hand. But looking at the Test Jamfile, I see that I was missing supplied_log_formatters.o, which I assume is somewhat new. Dave
participants (3)
-
David B. Held
-
Gennadiy Rozental
-
Larry Evans