
15 Jun
2010
15 Jun
'10
7:51 a.m.
I am trying to compile a class which inherit from boost.test test_suite one. However, I get the following message while linking : undefined reference to `global constructors keyed to _ZN5boost9unit_test119_GLOBAL__N__[...]_WizardTestSuite.cpp_C629D373_A17403F013unit_test_logE' (boost::unit_test::(anonymous namespace)::unit_test_log) I added both following line in the cpp file but it does not solve the issue : #include <boost/test/unit_test_log.hpp> namespace { static unit_test_log_t & inst = unit_test_log_t::instance(); } Thanks. Guillaume