[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Advice request to build C functions in a library for Lua5.1
- From: "Jerome Vuarand" <jerome.vuarand@...>
- Date: Thu, 25 Oct 2007 16:39:50 -0400
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.