[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Segfault with the basic example from Lua book
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 6 Jun 2006 08:33:52 -0300
> Thanks for the pointer but that's not very clear to me (I am not very
> skilled in C). It says "these functions have to be called from Lua"
> but then I get an error: "attempt to call global 'luaopen_base' (a nil
> value)".
luaopen_* is to be called from C.
> Could you please point me to any working complete example that is
> correct for Lua5.1? Any at all? I can learn by analyzing that.
Just replace all calls to luaopen_* by a single call to luaL_openlibs(L).
See linit.c and lua.c from the distro.
--lhf