Build Lua On windows 7

本文介绍如何使用Visual Studio 2015编译Lua 5.3.6源代码,包括配置环境、编译步骤及生成dll和exe文件的过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

prerequisite

  • vs2015
  • Lua source code for v5.3.6

Building

In command prompt,

cd %VS_INTALL_DIR%\VC (like D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC )
cd %Lua_Source_Code_Dir% (like c:\Desktop\lua-5.3.6\src)
cl /MD /O2 /c /DLUA_BUILD_AS_DLL *.c
rename lua.obj to lua.o
rename luac.obj to 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

after above operations, needed .exe and .dll are there.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值