|
Boost Users : |
Subject: Re: [Boost-users] Problem solved: LNK2019 with boost::thread_group [!]
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-12-11 11:35:11
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 <boost/test/floating_point_comparison.hpp>
>
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 <boost/test/unit_test.hpp>
>
These two are all that is needed
> #include <boost/test/auto_unit_test.hpp>
>
This header is deprecated. All it contains is #include
<boost/test/unit_test.hpp>
> I am not sure if the first of these includes is required, but this always seems to work.
>
In Christ,
Steven Watanabe
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