[test] inconsistent dll linkage warnings and BOOST_TEST_DECL and unit_test_main.ipp
22 Sep
2010
22 Sep
'10
4:03 p.m.
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
5163
Age (days ago)
5163
Last active (days ago)
0 comments
1 participants
participants (1)
-
Felipe Magno de Almeida