Boost logo

Boost :

Subject: Re: [boost] [test] Compilation errors on MinGW 4.8.1
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2014-06-12 15:08:00

On Wed, Jun 11, 2014 at 11:24 AM, Andrey Semashev
<andrey.semashev_at_[hidden]> wrote:
> On Wednesday 11 June 2014 08:12:58 Jürgen Hunold wrote:
>> Hi Adam,
>> Am Dienstag, 10. Juni 2014, 22:59:56 schrieb Adam Wulkiewicz:
>> > Hi,
>> >
>> > When I try to compile Boost.Test (develop) tests or any other tests
>> > using execution_monitor on MinGW-GCC 4.8.1 I get the following errors:
> There is legacy MinGW (the one that generates 32-bit binaries) and MinGW-w64.
> The problem is with the former one, I've seen it too. I think inclusion of
> fenv.h gets messed up somehow, I didn't dig much further. It's possible that
> it's a bug in MinGW.

Yes, this looks like a bug in MinGW. Including <fenv.h> leads to
inclusion of "C:\MinGW\lib\gcc\mingw32\4.8.1\include\c++\fenv.h" which
has this code:

#include <bits/c++config.h>
# include_next <fenv.h>

and <bits/c++config.h> doesn't define _GLIBCXX_HAVE_FENV_H macro (it's
commented). I defined the macro in my local c++config.h and it solved
the problem. I wonder if we should try to work around it in

Boost list run by bdawes at, gregod at, cpdaniel at, john at