vs is too big. while waiting to update it, I tried mingw 12
using x86_64-12.2.0-release-posix-seh-msvcrt-rt_v10-rev2
this got two files:
luart-static.exe
wluart-static.exe
so static part is ok, but dll part failed.
mingw32-make
━━━━━━━━━━━━━━━━━━━━ Building LuaRT 1.7.1 for x64 ━━━━━━━━━━━━━━━━━━━━
▸ Building static executables ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■luart.c: In function 'int WinMain(HINSTANCE, HINSTANCE, PSTR, INT)':
luart.c:282:1: warning: label 'execscript' defined but not used [-Wunused-label]
282 | execscript: if (luaL_loadfile(L, __argv[argfile]) == LUA_OK) {
| ^~~~~~~~~~
■■■
▸ Building Lua 5.4.6 VM ■■■■■■■■■■■■■■■■■■■
▸ Building LuaRT core framework ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■mingw32-make[2]: *** [GNUmakefile:186: lua54.dll] Error 1
mingw32-make[1]: *** [GNUmakefile:132: toolchain] Error 2
mingw32-make: *** [GNUmakefile:22: core/.] Error 2
--verbose message
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: console\console.o:console.c:(.data$TFile+0x0): multiple definition of `TFile'; sys\sys.o:sys.c:(.data$TFile+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: console\console.o:console.c:(.data$TDatetime+0x0): multiple definition of `TDatetime'; sys\sys.o:sys.c:(.data$TDatetime+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: compression\compression.o:compression.c:(.data$TBuffer+0x0): multiple definition of `TBuffer'; sys\sys.o:sys.c:(.data$TBuffer+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: compression\compression.o:compression.c:(.data$TFile+0x0): multiple definition of `TFile'; sys\sys.o:sys.c:(.data$TFile+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: compression\compression.o:compression.c:(.data$TDatetime+0x0): multiple definition of `TDatetime'; sys\sys.o:sys.c:(.data$TDatetime+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: compression\Zip.o:Zip.c:(.data$TZip+0x0): multiple definition of `TZip'; compression\compression.o:compression.c:(.data$TZip+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: compression\Zip.o:Zip.c:(.data$TDirectory+0x0): multiple definition of `TDirectory'; sys\sys.o:sys.c:(.data$TDirectory+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: compression\Zip.o:Zip.c:(.data$TBuffer+0x0): multiple definition of `TBuffer'; sys\sys.o:sys.c:(.data$TBuffer+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: compression\Zip.o:Zip.c:(.data$TFile+0x0): multiple definition of `TFile'; sys\sys.o:sys.c:(.data$TFile+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: compression\Zip.o:Zip.c:(.data$TDatetime+0x0): multiple definition of `TDatetime'; sys\sys.o:sys.c:(.data$TDatetime+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: sys\Date.o:Date.c:(.data$TDatetime+0x0): multiple definition of `TDatetime'; sys\sys.o:sys.c:(.data$TDatetime+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: sys\File.o:File.c:(.data$TFile+0x0): multiple definition of `TFile'; sys\sys.o:sys.c:(.data$TFile+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: sys\File.o:File.c:(.data$TDatetime+0x0): multiple definition of `TDatetime'; sys\sys.o:sys.c:(.data$TDatetime+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: sys\File.o:File.c:(.data$TDirectory+0x0): multiple definition of `TDirectory'; sys\sys.o:sys.c:(.data$TDirectory+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: sys\File.o:File.c:(.data$TBuffer+0x0): multiple definition of `TBuffer'; sys\sys.o:sys.c:(.data$TBuffer+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: sys\Pipe.o:Pipe.c:(.data$TPipe+0x0): multiple definition of `TPipe'; sys\sys.o:sys.c:(.data$TPipe+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: sys\Pipe.o:Pipe.c:(.data$TBuffer+0x0): multiple definition of `TBuffer'; sys\sys.o:sys.c:(.data$TBuffer+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: sys\Directory.o:Directory.c:(.data$TDirectory+0x0): multiple definition of `TDirectory'; sys\sys.o:sys.c:(.data$TDirectory+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: sys\Directory.o:Directory.c:(.data$TFile+0x0): multiple definition of `TFile'; sys\sys.o:sys.c:(.data$TFile+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: sys\Directory.o:Directory.c:(.data$TBuffer+0x0): multiple definition of `TBuffer'; sys\sys.o:sys.c:(.data$TBuffer+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: sys\Directory.o:Directory.c:(.data$TDatetime+0x0): multiple definition of `TDatetime'; sys\sys.o:sys.c:(.data$TDatetime+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: sys\Buffer.o:Buffer.c:(.data$TBuffer+0x0): multiple definition of `TBuffer'; sys\sys.o:sys.c:(.data$TBuffer+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: sys\Com.o:Com.c:(.data$TCOM+0x0): multiple definition of `TCOM'; sys\sys.o:sys.c:(.data$TCOM+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lembed.o:lembed.c:(.data$TFile+0x0): multiple definition of `TFile'; sys\sys.o:sys.c:(.data$TFile+0x0): first defined here
D:/Data/Program/mingw/v12/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lembed.o:lembed.c:(.data$TDatetime+0x0): multiple definition of `TDatetime'; sys\sys.o:sys.c:(.data$TDatetime+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [GNUmakefile:186: lua54.dll] Error 1
mingw32-make[1]: *** [GNUmakefile:132: toolchain] Error 2
mingw32-make: *** [GNUmakefile:22: core/.] Error 2