Boost logo

Boost :

Subject: Re: [boost] [test] Still having issues
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-10-12 19:10:32


On 10/12/2011 11:21 AM, Gennadiy Rozental wrote:
> John Maddock<boost.regex<at> virgin.net> writes:
>
>>
>>>> I'm still having a lot of issues with the latest Boost.Test not building:
>>>>
>>>> On Win32 with Intel's 11.1 and 12.1 compilers I see:
>>>>
>>>> ..\..\..\boost/test/impl/execution_monitor.ipp(104): error: invalid
>>>> redeclaration of type name "_invalid_parameter_handler" (declared at line
>>>> 228 of "C:\Program Files\Microsoft Visual Studio
>>>> 10.0\VC\INCLUDE\stdlib.h")
>>>> typedef void* _invalid_parameter_handler;
>>>
>>> This was not changed. Is this new compiler?
>>
>> 12.1 is, but the same issue occurs on 11.1 which has been around for ages.
>
> Well, in might have never worked or something changed outside of Boost.Test
> cause this line was there since 2007 and nothing relevant change in a vicinity
> since.
>
> Gennadiy
>
> P.S. If you (or someone else) know what needs to be done to fix this I am open
> to patches

Just rename _invalid_parameter_handler to something else.
As the error message says, that name is already defined in some Visual
Studio headers.

Names that start with an underscore in the global namespace are reserved
by the implementation.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk