visual-c++luasocketzerobranelua-5.1

"specified procedure could not be found" with Lua5.1 LuaSockets Win 64bit C++


I'm trying to make ZBS work in Windows, with both Lua 5.1 and luasockets compiled as 64bit C++ sources. I'm getting the following error:

error loading module 'socket.core' from file 'socket\core.dll': The specified procedure could not be found.

Any thoughts or hint on that?

Thanks in advance,


Solution

  • It's likely that you are loading 32bit luasocket libraries. To make it work, modify package.cpath in your script/application to reference the location for 64bit luasocket libraries first and have that modification before require('mobdebug').start() call. See this ticket for a recent discussion and details.