lua-5.1.5.tar.gz 解开在 D:Lua5.1
1. 启动VS命令行
2.
Setting environment for using Microsoft Visual Studio 2010 x86tools.
c:program filesmicrosoft visual studio10.0vcbin>cd d:Lua5.1
c:program filesmicrosoft visual studio10.0vcbin>d:
d:Lua5.1>d:lua5.1etcluavs.bat
d:Lua5.1>cd src
d:Lua5.1src>cl /nologo /MD /O2 /W3 /c/D_CRT_SECURE_NO_DEPRECATE /DLUA_BUILD_A
S_DLL l*.c
lapi.c
lauxlib.c
lbaselib.c
lcode.c
ldblib.c
ldebug.c
ldo.c
ldump.c
lfunc.c
lgc.c
linit.c
liolib.c
llex.c
lmathlib.c
lmem.c
loadlib.c
lobject.c
lopcodes.c
loslib.c
lparser.c
正在生成代码...
正在编译...
lstate.c
lstring.c
lstrlib.c
ltable.c
ltablib.c
ltm.c
lua.c
luac.c
lundump.c
lvm.c
lzio.c
正在生成代码...
d:Lua5.1src>del lua.obj luac.obj
d:Lua5.1src>link /nologo /DLL /out:lua51.dlll*.obj
正在创建库 lua51.lib 和对象lua51.exp
d:Lua5.1src>if exist lua51.dll.manifest mt/nologo -manifest lua51.dll.manifes
t -outputresource:lua51.dll;2
d:Lua5.1src>cl /nologo /MD /O2 /W3 /c/D_CRT_SECURE_NO_DEPRECATE /DLUA_BUILD_A
S_DLL lua.c
lua.c
d:Lua5.1src>link /nologo /out:lua.exe lua.objlua51.lib
d:Lua5.1src>if exist lua.exe.manifest mt/nologo -manifest lua.exe.manifest -o
utputresource:lua.exe
d:Lua5.1src>cl /nologo /MD /O2 /W3 /c/D_CRT_SECURE_NO_DEPRECATE l*.c print.c
lapi.c
lauxlib.c
lbaselib.c
lcode.c
ldblib.c
ldebug.c
ldo.c
ldump.c
lfunc.c
lgc.c
linit.c
liolib.c
llex.c
lmathlib.c
lmem.c
loadlib.c
lobject.c
lopcodes.c
loslib.c
lparser.c
正在生成代码...
正在编译...
lstate.c
lstring.c
lstrlib.c
ltable.c
ltablib.c
ltm.c
lua.c
luac.c
lundump.c
lvm.c
lzio.c
print.c
正在生成代码...
d:Lua5.1src>del lua.obj linit.obj lbaselib.objldblib.obj liolib.obj lmathlib.
objloslib.obj ltablib.obj lstrlib.obj loadlib.obj
d:Lua5.1src>link /nologo /out:luac.exe*.obj
d:Lua5.1src>if exist luac.exe.manifest mt/nologo -manifest luac.exe.manifest
-outputresource:luac.exe
d:Lua5.1src>del *.obj *.manifest
d:Lua5.1src>cd ..
d:Lua5.1>
3.结果如下