Boost logo

Boost Users :

Subject: [Boost-users] [test] inconsistent dll linkage warnings and BOOST_TEST_DECL and unit_test_main.ipp
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2010-09-22 12:03:12


Hi,

When I compile /boost//unit_test_framework as a dependency in a
boost.build project I get errors with BOOST_TEST_DECL with some
definitions in .ipp files.
It seems BOOST_TEST_DECL is suppose to be used in functions that
aren't defined for the user and that must be exported/imported
depending if included by test's source or the user's source files. But
.ipp files use BOOST_TEST_DECL which are included by the user with
msvc-8.0 compiler and then it gives errors about that
__declspec(dllimport) doesn't allow definition. To fix it I just
changed BOOST_TEST_DECL for BOOST_TEST_CALL_DECL in the .ipp files.
It works correctly with gcc in linux though.

Regards,

-- 
Felipe Magno de Almeida

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