LuaSocket socket/core.dll required location?
问题 When I use local socket = require("socket.core") It works fine, the dll is located at "dir/socket/core.dll" but when I move the dll to say "dir/folder/core.dll" and use local socket = require("folder.core.") It returns that it was found however it could not find the specific module in folder.core. How do I use Luasocket outside of it's socket.core requirements? Thanks! 回答1: If you want to require("socket.core") , the shared library (dll) has to have an exported function called luaopen_socket