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

Lua 与C 交换 第一篇

时间:2014-06-30 18:18:38      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:blog   文件   2014   window   windows   file   

编译 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 交换 第一篇,布布扣,bubuko.com

Lua 与C 交换 第一篇

标签:blog   文件   2014   window   windows   file   

原文地址:http://blog.csdn.net/haifengzhilian/article/details/35992697

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