16 Jul
2009
16 Jul
'09
5:32 p.m.
Matthias Vallentin
It works, however, using the automatic test module definition, e.g.
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE foo #include
This is fine
and works also when I remove BOOST_TEST_DYN_LINK and compile the program with the static library:
g++ test.cc /opt/local/lib/libboost_unit_test_framework-mt.a
This is fine as well.
But I can't get the first example code above to link. Does anyone see the problem lurking?
The problem is that you are missing main, which does not reside in shared library. You can either implement one yourself, or use one of two approaches above. Why do you want manual registration? Gennadiy