
error LNK2019: unresolved external symbol "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) referenced in function _main This is one of those "second order" calls where I cannot even readily find where the call is made to the above function. Is anyone else experiencing LNK2019 errors with Boost (esp. w.r.t. VS 2008) -- see below? Although I received one or two responses to the question posted below, in general, dealing with these linker errros is *MUCH* more difficult than dealing with compiler erros, and there is very little information to go on. Thanks in Advance! (-: Joseph
Subject: LNK2019 with boost::thread_group [!] To: boost-users@lists.boost.org Date: Monday, December 1, 2008, 11:59 AM Here is what I'm trying to do:
boost::thread_group threadGroup;
for( ; port_min <= port_max; ++port_min ) { threadGroup.add_thread(new boost::thread(boost::bind(CCUThread, port_min, strategy))); }
I am getting the following error:
error LNK2001: unresolved external symbol "void __cdecl boost::assertion_failed(char const *,char const *,char const *,long)" (?assertion_failed@boost@@YAXPBD00J@Z) ..\bin\ccu_simulator.exe : fatal error LNK1120: 1 unresolved externals
Is this Boost-related?
I found one posting that was somewhat similar on the web, but the user found an error elsewhere, and it shed no light on the situation.
I am also getting several other LNK1120 errors that may be related to Boost.
I am converting working VS 6.0 (and occasionally 2005) code to VS 2008; this has caused this link error to appear.
I also have changed Boost from v. 1.31 to 1.36; whether this affects the above linker errors I do not know.
Any help would be appreciated.
Last time I posted about a linking error, I received no replies at all, so if someone knows something, please reply.
Thanks Again!
(-:
Sincerely, Joseph
participants (1)
-
Joseph A. Marks