|
Boost Users : |
Subject: [Boost-users] Problem solved: LNK2019 with boost::thread_group [!]
From: Joseph A. Marks (josephamarks_at_[hidden])
Date: 2008-12-11 11:14:51
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 <boost/test/floating_point_comparison.hpp>
#define BOOST_TEST_MAIN "Test put_your_town_string_here"
#include <boost/test/unit_test.hpp>
#include <boost/test/auto_unit_test.hpp>
I am not sure if the first of these includes is required, but this always seems to work.
Hopefully, someone will be helped by this e-mail at some point or other.
Thanks,
Sincerely,
Joseph A. Marks
e-mail: josephamarks_at_[hidden]
--- On Mon, 12/8/08, Joseph A. Marks <josephamarks_at_[hidden]> wrote:
> From: Joseph A. Marks <josephamarks_at_[hidden]>
> Subject: LNK2019 with boost::thread_group [!]
> To: boost-devel_at_[hidden]
> 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_at_unit_test_at_boost@@HQAPAD_at_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_at_[hidden]
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net