[英]How to compile LuaFileSystem library and get .dll file WITHOUT luarocks?
So, I got file "lfs.c" "lfs.h" "lfs.def" and ".gitignore". 因此,我得到了文件“ lfs.c”,“ lfs.h”,“ lfs.def”和“ .gitignore”。 I tried installing MinGW and typing in that command:
gcc lfs.c
(Keep in mind that I'm a total newbie in such things), which leaves me with error "failed to include lua.h"... I don't know how to do that, can anyone please explain to me how to do that? 我尝试安装MinGW并输入以下命令:
gcc lfs.c
(请记住,我在这些方面是个新手),这使我出现错误“无法包含lua.h”……我没有知道该怎么做,有人可以向我解释该怎么做吗? Or at least give me the link to already compiled lfs.dll? 或者至少给我链接到已经编译的lfs.dll?
You are likely to be missing Lua include files; 您可能会丢失Lua包含文件; see this SO answer for details on how to set it up.
有关如何设置的详细信息,请参见此SO答案 。
Simply getting lfs.dll may not be so easy as different DLLs may depends on different Lua DLLs on Windows. 简单地获取lfs.dll可能并不容易,因为不同的DLL可能取决于Windows上不同的Lua DLL。 I have lfs.dll that is compiled against Lua51.dll, so if this works for your project/needs, you can get a compiled version here .
我有针对Lua51.dll编译的lfs.dll,因此,如果这适用于您的项目/需求,则可以在此处获取编译后的版本 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.