lua-users home
lua-l archive

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


> 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