|
Boost : |
Subject: [boost] Fwd: [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-24 07:37:11
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_at_[hidden]>
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_at_[hidden]
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 list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk