编译 wlua.exe

如何使用 cl.exe 编译 wlua.exe 解释器?

我使用以下命令编译 Lua:

cl /MD /O2 /c /DLUA_BUILD_AS_DLL *.c
ren lua.obj lua.o
ren luac.obj luac.o
link /DLL /IMPLIB:lua5.3.lib /OUT:lua5.3.dll *.obj
link /OUT:lua.exe lua.o lua5.3.lib
lib /OUT:lua5.3-static.lib *.obj
link /OUT:luac.exe luac.o lua5.3-static.lib
点赞