lua-users home
lua-l archive

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

Crystal Jewels wrote:
> FAO Jerome
> Thank you for your advice.
> I had already attempted this solution but it fails with:
> attempt to index global 'mylib' (nil value)
> I chose to substitute the package.loadlib because I could
> then specify a path.  I have failed in assigning a path
> by other methods.
> Further comments and advice would be gratefully received.

You can try that instead:
local mylib = require("mylib")

...but I don't think it will make a difference. Do you have a patched
version of Lua ? Also follow Alex Queiroz advice to build your module,
it may be the cause of the problem.