Passing -D options with b2 to ASIO when compiling with mingw64 ucrt64?

Hi, I try to compile Boost with MingW64 with ucrt64. I get warnings saying I should define _WIN32_WINNT with 0x0601 or higher and an error saying I must define USE_W32_SOCKETS. Is it possible to pass these on a command line to b2 or otherwise, without interfering with Boost's source? TIA -- Groeten, Joost

вт, 18 мар. 2025 г. в 00:12, Joost Kraaijeveld via Boost-users <boost-users@lists.boost.org>:
Hi,
I try to compile Boost with MingW64 with ucrt64. I get warnings saying I should define _WIN32_WINNT with 0x0601 or higher and an error saying I must define USE_W32_SOCKETS.
Is it possible to pass these on a command line to b2 or otherwise, without interfering with Boost's source?
For that you can use the "define" feature, e.g. b2 define=USE_W32_SOCKETS Also, see https://www.bfgroup.xyz/b2/manual/release/index.html#bbv2.overview.builtins.... for the list of all standard features.(A "feature" is an unbound property in B2 parlance).
participants (2)
-
Joost Kraaijeveld
-
Дмитрий Архипов