I looked into this a little bit by compiling some test C programs and by
running
egrep '#define\s+_WIN32_WINNT\b' -r /mingw64/x86_64-w64-mingw32/include/
It looks like _WIN32_WINNT is defined to be 0x502 in _mingw.h if the user
has not defined it already. That file comes from the mingw-w64 project.
You can define _WIN32_WINNT yourself using a compiler flag when you compile
a project.
My understanding is that there are many Windows XP users left and that the
MSYS2 maintainers intend to support them. Compiling the boost library with
a higher version number would probably make the DLL fail to load on Windows
XP systems.
It looks you posted this in a few other places and that you succeeded in
compiling a special version of the Boost package with a different
_WIN32_WINNT:
https://github.com/Alexpux/MINGW-packages/issues/1305
https://svn.boost.org/trac/boost/ticket/12119
--David Grayson
On Sun, Apr 10, 2016 at 2:17 PM, Mario Emmenlauer <[email protected]>
wrote:
>
> Dear All,
>
> I've run into an issue twice in the last days, so I wanted to kindly ask
> for your input. Two packages I want to use are gRPC (the Google cross
> platform RPC library) and boost::filesystem, and both require _WIN32_WINNT
> to be defined to at least 0x0600. boost::filesystem seems to support sym-
> links only when _WIN32_WINNT is defined to at least 0x0600. I did not delve
> deeply into this, but that was my take from the following report, and I've
> been plagued by the same issue:
>
> http://stackoverflow.com/questions/19471266/boostfilesystemcreate-symlink-not-supported
>
>
> Is _WIN32_WINNT defined by default? If yes, by whom (MSYS2, or MinGW64
> gcc)?
> If its not defined by default, should packages set it via CFLAGS, or is
> there
> a good policy how I can compile for a specific Windows version (Vista /
> newer)?
> Would it maybe make sense to set 0x0600 (Vista) as a default, in order to
> enable "modern" things like symlinks? Or are there still XP users left? :-)
>
> Cheers,
>
> Mario
>
>
>
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
> gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
> _______________________________________________
> Msys2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/msys2-users
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users