Boost logo

Boost Users :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2006-02-07 11:21:57


"Markus Werle" <numerical.simulation_at_[hidden]> wrote in message
news:loom.20060206T183547-743_at_post.gmane.org...
> Hi!
>
> I have some problems getting started with boost::test.
>
> I tried to build a Vc7 project using the code of
> http://boost.org/libs/test/test/result_report_test.cpp, but this
> fails to compile due to unresolved symbol init_unit_test_suite.

You need to link with the Test Execution Monitor not the Unit Test Framework
component

> libboost_unit_test_framework-vc71-mt-sgd-1_33_1.lib(framework.obj) : error
> LNK2019: Nicht aufgelostes externes Symbol '"class
> boost::unit_test::test_suite
> * __cdecl init_unit_test_suite(int,char * * const)"
> (?init_unit_test_suite@@YAPAVtest_suite_at_unit_test_at_boost@@HQAPAD_at_Z)',
> verwiesen
> in Funktion '"void __cdecl boost::unit_test::framework::init(int,char * *
> const)" (?init_at_framework@unit_test_at_boost@@YAXHQAPAD_at_Z)'
> Debug/test.exe : fatal error LNK1120: 1 unaufgeloste externe Verweise
>
> Am I missing anything?
>
> I found out that
> #include <boost/test/included/test_exec_monitor.hpp>
> resolves the problem, but is this the correct solution?

This is one alternative that put included version of the Test Execution
Monitor directly into your test module. No linking is necessary in this
case.

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