Fwd: [test] inconsistent dll linkage warnings and BOOST_TEST_DECL and unit_test_main.ipp

Hello, Since I didn't receive any replies in boost-users list, I'm forwarding here. ---------- Forwarded message ---------- From: Felipe Magno de Almeida <felipe.m.almeida@gmail.com> Date: Wed, Sep 22, 2010 at 1:03 PM Subject: [test] inconsistent dll linkage warnings and BOOST_TEST_DECL and unit_test_main.ipp To: boost-users@lists.boost.org 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
participants (1)
-
Felipe Magno de Almeida