简体   繁体   English

如何编译LuaFileSystem库并获取没有luarocks的.dll文件?

[英]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.

相关问题 一种如何将C库编译成.Net dll的方法? - A way How to Compile C library into .Net dll? 如何在不使用库的情况下获取jpeg文件的宽度/高度? - How to get the width/height of jpeg file without using library? 如何编译C文件但限制库使用? - How to compile C file but limit the library usage? 如何将 C 代码(或 32 位 dll 文件)编译成 64 位 dll 文件? - How to compile C code (or a 32-bit dll file) into 64-bit dll file? 如何在没有“为不支持的文件格式构建文件”的情况下让GCC正确编译目标文件? - How do I get GCC to compile object files correctly without “file was built for unsupported file format”? 如何在没有visual studio的情况下编译C文件 - How to compile a C file without visual studio 头文件(.h),库文件(.lib)和DLL(.dll)文件如何相关 - How are Header file (.h), Library file (.lib) and DLL (.dll) files related 如何编译C源文件以创建自定义库? - How to compile a C source file to make a custom library? 如何使用gcc使用源代码文件编译库归档文件? - How can I compile a library archive with a source code file with gcc? 如何自动创建具有最新编译时间的文件并将其包含到库中? - How to automatically create a file with the latest compile time and include it into a library?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM