Boost logo

Boost :

Subject: Re: [boost] mingw and windows.h
From: Marcel Raad (Marcel.Raad_at_[hidden])
Date: 2018-01-17 20:39:45


Hi Raffi,

> -----Original Message-----
> From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of Raffi
> Enficiaud via Boost
> Sent: Mittwoch, 17. Januar 2018 20:42
> To: boost_at_[hidden]
> Cc: Raffi Enficiaud <raffi.enficiaud_at_[hidden]>
> Subject: [boost] mingw and windows.h
>
> I recently pushed something for boost.test on develop that is apparently
> breaking the builds on mingw:
> http://www.boost.org/development/tests/develop/developer/output/igazt
> anaga-develop-gcc-4-2c++03-boost-bin-v2-libs-test-test-version-uses-
> module-name-test-gcc-4-2c+-dbg-dbg-symbl-off.html
> [...]
> I thought that this would be enough for having the windows specific
> code, but apparently mingw disagrees with the error that some windows
> specific define is not there.
>
> Is this an issue with the code, the SDK, the machine? I have no
> experience with mingw, but if we are able to include windows.h, then we
> have to have the defines there (the missing macro is there since Windows
> 2000).

original MinGW is missing that define (and many more) completely, it should be in wincon.h:
https://sourceforge.net/p/mingw/mingw-org-wsl/ci/5.1-trunk/tree/w32api/include/wincon.h

MinGW-w64 has it.

Marcel


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