vs2010编译lua-5.3.2

lua-5.3.2.tar.gz 解开在 D:\lua

1. 启动VS命令行vs2010编译lua-5.3.2_第1张图片

2.

c:\program files\microsoft visual studio 10.0\vc\bin>cd d:\lua

c:\program files\microsoft visual studio 10.0\vc\bin>d:

d:\lua>cd src

d:\lua\src>cl /nologo /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE /DLUA_BUILD_AS_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:\lua\src>del lua.obj luac.obj

d:\lua\src>link /nologo /DLL /out:lua51.dll l*.obj
   正在创建库 lua51.lib 和对象 lua51.exp

d:\lua\src>if exist lua51.dll.manifest mt /nologo -manifest lua51.dll.manifest -outputresource:lua51.dll;2

d:\lua\src>cl /nologo /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE /DLUA_BUILD_AS_DLL lua.c
lua.c

d:\lua\src>link /nologo /out:lua.exe lua.obj lua51.lib

d:\lua\src>if exist lua.exe.manifest mt /nologo -manifest lua.exe.manifest -outputresource:lua.exe

d:\lua\src>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:\lua\src>del lua.obj linit.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj    loslib.obj ltablib.obj lstrlib.obj loadlib.obj

d:\lua\src>link /nologo /out:luac.exe *.obj

d:\lua\src>if exist luac.exe.manifest mt /nologo -manifest luac.exe.manifest-outputresource:luac.exe

d:\lua\src>del *.obj *.manifest

d:\lua\src>cd ..

d:\lua>

3.结果如下

vs2010编译lua-5.3.2_第2张图片

你可能感兴趣的:(vs2010编译lua-5.3.2)