Lua 5.2 adding luasocket (unstable)

后端 未结 2 1932
执念已碎
执念已碎 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: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.

提交回复
热议问题