Boost logo

Boost Testing :

Subject: [Boost-testing] error C2491: 'boost::itest::exception_safety' : definition of dllimport function not allowed
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-01-31 16:19:21


Hi,

I'm building Boost.Log with Boost 1.41 with msvc-9.0express and I get the following unit_test::framework errors

compile-c-c++ ..\..\..\bin.v2\libs\log\test\attr_attribute_set.test\msvc-9.0express\debug\threading-multi\run\attr_attribute_set.obj
...
C:\cygwin\boost_1_41_0\boost/test/impl/framework.ipp(485) : warning C4273: 'boost::unit_test::framework::test_unit_aborted' : inconsistent dll linkage
        C:\cygwin\boost_1_41_0\boost/test/framework.hpp(83) : see previous definition of 'test_unit_aborted'
C:\cygwin\boost_1_41_0\boost/test/impl/exception_safety.ipp(513) : error C2491: 'boost::itest::exception_safety' : definition of dllimport function not allowed
C:\cygwin\boost_1_41_0\boost/test/impl/execution_monitor.ipp(904) : warning C4535: calling _set_se_translator() requires /EHa
...
C:\cygwin\boost_1_41_0\boost/test/impl/logged_expectations.ipp(228) : error C2491: 'boost::itest::logged_expectations' : definition of dllimport function not allowed
...
C:\cygwin\boost_1_41_0\boost/test/impl/unit_test_main.ipp(175) : error C2491: 'boost::unit_test::unit_test_main' : definition of dllimport function not allowed

What could be wrong in my environement?

Best,
Vicente

_____________________
Vicente Juan Botet Escribá



Boost-testing list run by mbergal at meta-comm.com