Closed ArgoreOfficial closed 4 months ago
https://learn.microsoft.com/en-us/cpp/build/configuring-programs-for-windows-xp?view=msvc-170
TL,DR: Windows XP programs require <= MSVC V141 toolset.
Other ways:
add_requires("yy-thunks")
add_packages("yy-thunks")
add_rules("@yy-thunks/xp")
ohh I see
compiling using the i86-w64-mingw32 toolchain manually worked
is there a way to select which MSVC toolset version to use?
$ xmake f --vs_toolset=<version>
or
set_toolchains("msvc", {vs_toolset = ""})
ended up going with mingw
Xmake Version
2.9.3
Operating System Version and Architecture
Windows 10, XP Pro
Describe Bug
building a basic "Hello World" program using
-a x86
does not create a valid 32-bit applicationruns fine on my x64 machine, but will not launch in a Windows XP Pro virtual machine
I have tried both MSVC and clang, neither create a valid application
Expected Behavior
targetting x86/32bit should create a valid 32-bit application
Project Configuration
xmake.lua
main.cpp
build command
xmake f -p windows -a x86
xmake
Additional Information and Error Logs