
5 Apr
2013
5 Apr
'13
10:54 p.m.
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
3. Create test1.cpp and insert following code:
#include
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.