Boost logo

Boost Testing :

Subject: Re: [Boost-testing] [daw-msvc71] something's amiss
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-06-15 14:14:31


AMDG

David Walthall wrote:
> On 6/3/2010 11:16 AM, Eric Niebler wrote:
>
>> Lots of test failures on daw-msvc71 that look like a misconfiguration,
>> or at least a problem with Boost.Test on this platform. See
>> http://tinyurl.com/yg5wgw5. This is the only tester for msvc-7.1 on
>> trunk; it'd be great to get this resolved.
> Thanks for the resend of this. I missed it the first time. Here were
> the changes that I made to my local copy of execution_monitor.ipp to get
> the .cpp to compile. I made some intelligent guesses as to what the vc
> 7.1 versions of _controlfp_s (_controlfp) should be, but they should be
> checked carefully.
>

The _controlfp changes look right to me. Have you checked that the
Boost.Tests pass?

> Index: C:/boost_testing_trunk/boost/boost/test/impl/execution_monitor.ipp
> ===================================================================
> --- C:/boost_testing_trunk/boost/boost/test/impl/execution_monitor.ipp
> (revision 62925)
> +++ C:/boost_testing_trunk/boost/boost/test/impl/execution_monitor.ipp
> (working copy)
> @@ -861,15 +861,12 @@
> //____________________________________________________________________________//
>
> #if BOOST_WORKAROUND( BOOST_MSVC, <= 1310)
> -static void
> -seh_catch_preventer( unsigned int /* id */, _EXCEPTION_POINTERS* /*
> exps */ )
> -{
> - throw;
> -}
> +extern "C" void seh_catch_preventer( unsigned int /* id */,
> _EXCEPTION_POINTERS* /* exps */ );
> #endif
>

Does it work if you use

extern "C" {
static void
seh_catch_preventer( unsigned int /* id */, _EXCEPTION_POINTERS* /* exps
*/ )
{
    throw;
}
}

and change the second use to &detail::seh_catch_preventer?
The reason for this error:
  execution_monitor.cpp
  ..\boost\test\impl\execution_monitor.ipp(1086) : error C2065:
'seh_catch_preventer' : undeclared identifier
is that seh_catch_preventer is in namespace detail.

In Christ,
Steven Watanabe


Boost-testing list run by mbergal at meta-comm.com