【发布时间】:2016-06-01 14:01:21
【问题描述】:
我有一个 Lua 程序(用 Lua 5.1 编写)。我在 Windows 7 上,尝试使用 srlua 将 lua 文件转换为可执行文件。最后我创建了一个使用的可执行文件
glue.exe srlua.exe myscript.lua gd.exe
当我单击 exe/bat 执行时。它崩溃了。提示:在计算机中找不到 lua51.dll。 当我使用 cmd 执行时。这行得通。即使我只将 gd.exe 移动到其他目录。 所以为什么 ? srlua 不创建没有 lua 环境的独立 exe? dir ls
【问题讨论】: