lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello All,

I have created a library using SWIG and I wish to call it from a LUA script. I am using LUA 5.1.2 and I am just executing this using lua5.1.exe eg lua5.1 hello.lua

If I use the following line
require("hello")
Then I get an error : loop or previous error loading module

But if I use the following line it works ok.
lib=package.loadlib('hello.dll','Hello_Init')

Do I need to change my dll to make sure that require works?

Regards,

Chris