码迷,mamicode.com
首页 > 其他好文 > 详细

Lua 与C 交换 第一篇

时间:2016-01-11 22:12:52      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:

编译 windows上编译lua源代码


cl /MD /O2 /W3 /c /DLUA_BUILD_AS_DLL *.c
del *.o
ren lua.obj lua.o
ren luac.obj luac.o
ren print.obj print.o
link /DLL /IMPLIB:lua5.1.lib /OUT:lua5.1.dll *.obj
link /OUT:lua.exe lua.o lua5.1.lib
lib /out:lua5.1-static.lib *.obj
link /OUT:luac.exe luac.o print.o lua5.1-static.lib

复制上述文本保存为bat文件。执行。



Lua 与C 交换 第一篇

标签:

原文地址:http://www.cnblogs.com/bhlsheji/p/5122424.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!