-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hey there...
I recently downloaded, built, and installed Boost 1.32.
I am attempting to use the Boost Unit Test Framework but am running
into difficulties figuring out which lib to link to.
I am compiling with MS VC++ 7.1. The headers appear to be discovered
as they should be, but the linker is failing
to find the correct lib. I have tried many of the libs which were
created by the build, but these all create more errors
(typically to do with redefinitions of std:: functions). At this
point I am only trying to compile the example code
supplied on the projects web site.
some of the libs I tried:
libboost_prg_exec_monitor-vc71-mt-1_32.lib
libboost_test_exec_monitor-vc71-mt-1_32.lib
libboost_unit_test_framework-vc71-mt-1_32.lib
some articles I found online advised turning on mutithreading in the
compiler properities, enabling run time type identification, and
setting exceptions to /EHa
I've done all of this but nothing is working, it really just looks
like a linker problem.
Thanks for any help
Dave
- -------------------------
linking errors:
Linking...
main.obj : error LNK2019: unresolved external symbol "bool __cdecl
boost::test_tools::tt_detail::test_and_continue_impl(bool,class
boost::basic_wrap_stringstream<char> &,class
boost::unit_test::basic_cstring<char const >,unsigned int,bool,enum
boost::unit_test::log_level)"
(?test_and_continue_impl@tt_detail@test_tools@boost@@YA_N_NAAV?$basic_
wrap_stringstream@D@3@V?$basic_cstring@$$CBD@unit_test@3@I0W4log_level
@63@@Z) referenced in function "void __cdecl
free_test_function(void)" (?free_test_function@@YAXXZ)
main.obj : error LNK2019: unresolved external symbol "public: void
__thiscall boost::unit_test::test_suite::add(class
boost::unit_test::test_case *,unsigned long,int)"
(?add@test_suite@unit_test@boost@@QAEXPAVtest_case@23@KH@Z)
referenced in function "class boost::unit_test::test_suite * __cdecl
init_unit_test_suite(int,char * * const)"
(?init_unit_test_suite@@YAPAVtest_suite@unit_test@boost@@HQAPAD@Z)
main.obj : error LNK2019: unresolved external symbol "public:
__thiscall boost::unit_test::test_suite::test_suite(class
boost::unit_test::basic_cstring<char const >)"
(??0test_suite@unit_test@boost@@QAE@V?$basic_cstring@$$CBD@12@@Z)
referenced in function "class boost::unit_test::test_suite * __cdecl
init_unit_test_suite(int,char * * const)"
(?init_unit_test_suite@@YAPAVtest_suite@unit_test@boost@@HQAPAD@Z)
main.obj : error LNK2019: unresolved external symbol "class
std::basic_string