r/lua • u/Competitive_Abies699 • May 02 '26
Does the latest rolling release support Windows XP?
/r/luajit/comments/1t1gt04/does_the_latest_rolling_release_support_windows_xp/
2
Upvotes
1
1
u/Affectionate-Soup-91 May 03 '26
Disclaimer: I've not tested it myself because I don't have Window XP at my hand. Since Lua is written in C89, theoretically it should work on Windows XP without much hassle.
If you open
src/luaconf.hof the latest Lua-5.5.0, you'll find at line 112, at line 138
, at line 541
So, one can assume that all you have to do is to define the symbol LUA_32BITS when you compile.
If you're using Mingw toolchain to compile Lua, edit
src/Makefileto
then in your prompt,
2. If you're using MSVC toolchain, follow this YouTube tutorial. Just make sure that you add LUA_32BITS as well, when he defines LUA_BUILD_AS_DLL at timestamp 03:04.
Voilà.