Re: [Boost-users] Boost-users Digest, Vol 5755, Issue 1

Hello,
Date: Mon, 17 Mar 2025 21:02:09 +0100 From: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl> To: boost-users@lists.boost.org Subject: [Boost-users] Passing -D options with b2 to ASIO when compiling with mingw64 ucrt64? Message-ID: <dc4a6232934d0d77af53a3054afddbc5b22a8bc1.camel@Askesis.nl> 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@eb-soft.de Web: https://www.ebsoft.de Amtsgericht-Registergericht-Stuttgart HRB 102882 Geschäftsführerin: Hannelore Sigler
participants (1)
-
Label