Which boost version/Asio fully supports Windows XP and how to build that from source?

i want to migrate an old dirty legacy app handling TCP/IP to Boost.Asio because all my other TCP/IP stuff is using Asio and the legacy app getting reworked BUT it still needs to run on old dirty Windows XP - for around 1-2 years (then i can upgrade to more recent compiler/Boost etc.) i know that i had used Boost (i think 1.69) on XP a long time ago and trying to find out what Boost version is the last XP supporting and how i can build boost from source with VS2022 + v141_xp toolkit (if that is even possible - i have no idea) im using boost on daily basis and build for Linux,Windows for over a decade so its just the Windows XP thing that makes mit nervous tried building Boost 1.69 seems to be possible with VS2022 x86 console with v141_xp toolkit installed (not tested with XP so far) boostrap.bat vc141 and i think that is minimal needed for Asio b2 release toolset=msvc-14.1 define=BOOST_USE_WINAPI_VERSION=0x0501 --with-system --with-thread --with-date_time --with-regex --with-serialization stage toolset can be set to anything currently (even msvc-14.1_xp or msv-14.1_blabla) so im not sure what i really need to force using the v141_xp toolkit so what is the latest Boost version that supports XP enough for Asio use and how to build that one properbly? thanks for any help

Am Donnerstag, dem 03.04.2025 um 10:03 +0200 schrieb Dennis Luehring via Boost:
i want to migrate an old dirty legacy app handling TCP/IP to Boost.Asio because all my other TCP/IP stuff is using Asio and the legacy app getting reworked
BUT it still needs to run on old dirty Windows XP - for around 1-2 years (then i can upgrade to more recent compiler/Boost etc.)
i know that i had used Boost (i think 1.69) on XP a long time ago and trying to find out what Boost version is the last XP supporting and how i can build boost from source with VS2022 + v141_xp toolkit (if that is even possible - i have no idea)
We use 1.82.0 with VS 2019/2022 and Windows XP. AFAIK 1.81.0 is ok without a patch. We use the v141_xp toolkit.
im using boost on daily basis and build for Linux,Windows for over a decade so its just the Windows XP thing that makes mit nervous
tried building Boost 1.69 seems to be possible with VS2022 x86 console with v141_xp toolkit installed (not tested with XP so far)
boostrap.bat vc141
and i think that is minimal needed for Asio
b2 release toolset=msvc-14.1 define=BOOST_USE_WINAPI_VERSION=0x0501 --with-system --with-thread --with-date_time --with-regex --with-serialization stage
toolset can be set to anything currently (even msvc-14.1_xp or msv-14.1_blabla) so im not sure what i really need to force using the v141_xp toolkit
so what is the latest Boost version that supports XP enough for Asio use and how to build that one properbly?
The mentioned patch was to make boost::filesystem and boost::log possible for WinXP. It is mentioned here on github: https://github.com/boostorg/system/issues/113 Also the build script is available there.

Am Thu, 3 Apr 2025 15:09:00 +0200 schrieb Dennis Luehring <dl.soluz@gmx.net>:
Am 03.04.2025 um 14:54 schrieb Georg Gast:
We use 1.82.0 with VS 2019/2022 and Windows XP. AFAIK 1.81.0 is ok without a patch.
We use the v141_xp toolkit.
can you state the exact b2 boostrap command your using and how you build the boost libs explicitly using v141_xp?
This is my full batch file to build 1.81.0 with VS2022 from modular boost.As you can see on the screenshot, it links without issue on WinXP SP3. At least: This works for me....
participants (2)
-
Dennis Luehring
-
Georg Gast