2

I downloaded the newest version of LuaInterface from their site, and referenced LuaInterface.dll and Lua51.dll. The interpreter itself works fine, but when I try to require("luainterface"), I get this exception :

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

Here's the example code which produces this behavior :

    static void Main(string[] args)
    {
        Lua lua = new Lua();
        lua.DoFile("test.lua");
    }

The test.lua script just has this :

luanet = require("luainterface");

Also, I've made sure that LUA_PATH points to where luanet.dll is.

What could be the problem?

fingerprint211b
  • 1,176
  • 12
  • 24

1 Answers1

1

For .dll's are looked for in LUA_CPATH in any case... http://www.lua.org/manual/5.1/manual.html#pdf-package.cpath

jpjacobs
  • 9,359
  • 36
  • 45