Boost unit_test.cpp problem when try to compile simple program
I tried to use Boost test module in my project but I have a little
problem. When I try to compile simple program:
#define BOOST_TEST_MAIN
#include
Robert Matusewicz
I tried to use Boost test module in my project but I have a little problem. When I try to compile simple program:
#define BOOST_TEST_MAIN #include
it fails to compile on Visual Studio 2008 with three errors:
How do you compile it? What is command line? The only way these even remotely possible if BOOST_TEST_DYN_LINK is defined somewhere. Gennadiy
Robert Matusewicz
The only way these even remotely possible if BOOST_TEST_DYN_LINK is defined somewhere.
Gennadiy
Yes, Yes - I link to dynamic Boost and use BOOS_ALL_DYN_LINK. There is no way to use Boost.Test with dynamic linking?
You need different include than. Can't have it both ways. Either you include library implementation or you link with it. Use boost/test/unit_test.hpp
participants (2)
-
Gennadiy Rozental
-
Robert Matusewicz