Lua 5.2 adding luasocket (unstable)

后端 未结 2 1931
执念已碎
执念已碎 2021-01-22 14:57

Im trying to use luasocket with lua 5.2. i downloaded the code form the git repository and built it. then made a make install so that it generated core.dll and mime.dll. put tho

相关标签:
2条回答
  • 2021-01-22 15:22

    Is your executable residing in the same directory as your lua files? Try putting the dll in the directory of your executable.

    0 讨论(0)
  • 2021-01-22 15:27

    Most likely you are loading socket modules that are compiled for Lua 5.1, not Lua 5.2 (or at least it's the same error I get in a case like that). Is it possible that you have socket module for Lua 5.1 somewhere in your path? It may come with LuaForWindows or another package. You can try to remove/move the socket DLLs you compiled (for Lua 5.2) and see if you get the same error.

    0 讨论(0)
提交回复
热议问题