
I've seen this error mentioned Try changing namespace { bool dummy_cond = false; } to namespace { static bool dummy_cond = false; } in test_tools.hpp Gennadiy "Christian Henning" <chhenning@gmail.com> wrote in message news:949801310707091519w3f187714o3d212031fb31da7d@mail.gmail.com...
Hi there, I'm using boost 1.34 on MSVC 7.1. For whatever reason I cannot eliminate various linker errors. I have defined my BOOST_AUTO_TEST_CASEs in several .cpp files and this seems to create multiple definition of various symbols. The errors look as the following:
string_table_test.obj : error LNK2005: "bool boost::test_tools::`anonymous namespace'::dummy_cond" (?dummy_cond@?A0x7aa5c0d5@test_tools@boost@@3_NA) already defined in ORM_test.obj string_table_test.obj : error LNK2005: "class unit_test_log_t::boost::unit_test_log_t & boost::unit_test::`anonymous namespace'::unit_test_log" (?unit_test_log@?A0x7aa5c0d5@unit_test@boost@@3AAVunit_test_log_t@23@A) already defined in ORM_test.obj
Did anyone had to deal which such messages before?
Thanks ahead, Christian