Boost logo

Boost Users :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-07-26 14:17:48


Sorry It took me awhile to answer.

> When I compile and link, the compile passes without warnings, but the link
> fails with
>
> undefined reference to 'boost::test_tools::tt_detail::message_impl(
> boost::basic_wrap_stringstream<char>&,
> boost::unit_test::basic_cstring<char const>,
> unsigned int)'

This function is implemented in test_tools.cpp. I really don't see a way for
it to be unresolved.

> I initially set up to statically link with
> libboost_unit_test_framework-mgw-mt-1_32.lib. When I got the undefined
> reference, I added libboost_test_exec_monitor-mgw-mt-1_32.lib and
> libboost_prg_exec_monitor-mgw-mt-1_32.lib, "just in case." Still
> undefined.

You shouldn't need more then one Boost.Test component.

> Eventually, I tried added in almost all of the static libraries PLUS
> copies all of the DLL into the program directory. Still undefined. At
> that point, I figured that something more than an incomplete makefile is
> the problem here.

Try to rebuild libboost_unit_test_framework-mgw-mt-1_32.lib. Make sure you
are using the same options when you are compiling library and your test. Try
to add Boost.Test sources directly into your makefile.

> Anyone have any idea what I've missing?

Should be something trivial. Let me know it you still have problems.

> Merrill

Gennadiy


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net