Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Test : Project setting in Visual 2010
From: Oodini (svdbg___free.fr)
Date: 2013-04-05 18:54:43


> Here is what I do. Please stick to the script as closely as possible.
> I assume you use Visual Studio 2010.
>
> 1. Create an empty console project. Turn off precompiled headers.
> 2. Include boost path to compiler settings
> 3. Create main.cpp and include the following code:
>
>
> #define BOOST_TEST_MAIN
> #include <boost/test/unit_test.hpp>
>
> 3. Create test1.cpp and insert following code:
>
> #include <boost/test/unit_test.hpp>
>
> BOOST_AUTO_TEST_CASE( test_1 )
> {
> }
>
> 4. Add boost lib path to linker settings.
> 5. Compile.
>
> Do you still have any problems?

No. I have problems only when the test is in a library (static), in an other project.


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