Boost logo

Boost Users :

Subject: [Boost-users] [UTF] Boost.Test compilation error(anonymous namespace)::unit_test_log
From: Guillaume Theraud (gui_at_[hidden])
Date: 2010-06-15 03:51:40


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



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