Problem solved: LNK2019 with boost::thread_group [!]

Problem solved:
In case anyone ever needs to know, here are the steps taken to solve the problem: {NOTE: A colleague helped me with this}.
Re-loaded Boost, upgrading to v. 1.37 {this upgrade may be a red herring, but it didn't hurt). This version is very friendly to compiling in MS VS 2008 (version 9).
Then, added the following, at the top of any relevant file:
#include
From: Joseph A. Marks
Subject: LNK2019 with boost::thread_group [!] To: boost-devel@lists.boost.org Date: Monday, December 8, 2008, 10:53 AM I get the following linker error using Boost, I am trying to get it to compile using VS 2008, with a makefile system: 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
Does anyone have any insight?
Thanks in advance,
Joseph A. Marks e-mail: josephamarks @ yahoo.com
Joseph A. Marks e-mail: josephamarks@yahoo.com

AMDG Joseph A. Marks wrote:
Problem solved:
In case anyone ever needs to know, here are the steps taken to solve the problem: {NOTE: A colleague helped me with this}.
Re-loaded Boost, upgrading to v. 1.37 {this upgrade may be a red herring, but it didn't hurt). This version is very friendly to compiling in MS VS 2008 (version 9).
Then, added the following, at the top of any relevant file:
#include
This header is only needed when you use BOOST_CHECK_CLOSE. Its absence should cause compile errors rather than link errors.
#define BOOST_TEST_MAIN "Test put_your_town_string_here" #include
These two are all that is needed
#include
This header is deprecated. All it contains is #include
I am not sure if the first of these includes is required, but this always seems to work.
In Christ, Steven Watanabe
participants (2)
-
Joseph A. Marks
-
Steven Watanabe