|
Boost Users : |
Subject: [Boost-users] Boost unit_test.cpp problem when try to compile simple program
From: Robert Matusewicz (matekm_at_[hidden])
Date: 2009-09-24 15:19:20
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 <boost/test/included/unit_test.hpp>
it fails to compile on Visual Studio 2008 with three errors:
c:\program files
(x86)\boost\boost_1_39\boost\test\impl\exception_safety.ipp(513) :
error C2491: 'boost::itest::exception_safety' : definition of
dllimport function not allowed
c:\program files
(x86)\boost\boost_1_39\boost\test\impl\logged_expectations.ipp(228) :
error C2491: 'boost::itest::logged_expectations' : definition of
dllimport function not allowed
c:\program files
(x86)\boost\boost_1_39\boost\test\impl\unit_test_main.ipp(174) : error
C2491: 'boost::unit_test::unit_test_main' : definition of dllimport
function not allowed
On Linux machines everything works OK. So, anybody could help me with
that? Need more data?
Robert
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