![]() |
Boost Users : |
From: Label (label_at_[hidden])
Date: 2025-03-18 13:52:45
Hello,
> Date: Mon, 17 Mar 2025 21:02:09 +0100
> From: Joost Kraaijeveld <J.Kraaijeveld_at_[hidden]>
> To: boost-users_at_[hidden]
> Subject: [Boost-users] Passing -D options with b2 to ASIO when
> compiling with mingw64 ucrt64?
> Message-ID:
> <dc4a6232934d0d77af53a3054afddbc5b22a8bc1.camel_at_[hidden]>
> Content-Type: text/plain; charset="UTF-8"
>
> 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
>
you can append the following definitions to the b2 command line:
b2 ... define=_WIN32_WINNT=0x0A00 define=BOOST_USE_WINAPI_VERSION=0x0A00
I do not know whether USE_W32_SOCKETS needs only be defined or wants a special value, you can try
define=USE_W32_SOCKETS
or
define=USE_W32_SOCKETS=1
-- __________________________________ Freundliche GrüÃe * Best regards * Met vriendelijke groeten * Meilleures salutations * Atentamente * Saludos Holger Gerth EB-Soft GmbH Neckargartacher Strasse 114 74080 Heilbronn Germany Tel: +49 7131-94660 Fax: +49 7131-10990 E-Mail: holger.gerth_at_[hidden] Web: https://www.ebsoft.de Amtsgericht-Registergericht-Stuttgart HRB 102882 Geschäftsführerin: Hannelore Sigler
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net