|
Boost Testing : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-11-14 02:50:39
Gennadiy Rozental wrote:
>
> "Robert Ramey" <ramey_at_[hidden]> wrote in message
> news:ejalpp$8gi$1_at_sea.gmane.org...
>> Now that Dave Abrahams has improved export functionlaty in the
>> serialization library, many tests which failed before with the CW library
>> are now passing.
>>
>> However, there are a number of failures similar to the following:
>>
>> http://tinyurl.com/yfo5q9
>>
>> I believe these can best be addressed by some sort of tweak/correction in
>> Boost Test.
>>
>> Any help here would be appreciated.
>
> Looks like we started to use DLL versions of Boost.Test component for some
> tests. But look like there still some issues left with DLL support. But in
> this particular case error maybe different: Looks liek this test is using
> test_exec_monitor and this component is deprecated and doesn't have DLL
> version.
>
> I recommend switching to UTF or returning to the static build for now.
The test_exec_monitor is always built statically. The problem is this:
<define>BOOST_ALL_DYN_LINK=1
in libs/serialization/test/Jamfile.v2
It causes all libraries, including Boost.Test, to mark functions as
__declspec(dllimport). However, since you're linking to test_exec_monitor
which is always built statically, you don't get any DLL to resolve those
symbols. This seem to work on msvc, but CW is more picky.
Just use the BOOST_SERIALIZATION_DYN_LINK=1 or whatever is the right define
for the serialization library.
Does this help?
- Volodya