[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Segfault with the basic example from Lua book
- From: "Frantisek Fuka" <fuka@...>
- Date: Tue, 6 Jun 2006 13:29:44 +0200
On 6/6/06, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> I have problems running even the most basic Lua/C interface example
> from the Lua book at: http://www.lua.org/pil/24.1.html
PiL1 is about Lu 5.0. The protocol for calling luaopen_* changed in 5.1. See
http://www.lua.org/manual/5.1/manual.html#7.3
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)".
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.
--
Frantisek Fuka (yes, that IS my real name)
(and it's pronounced "Fran-tjee-shek Foo-kah")
My E-Mail: fuka@fuxoft.cz
My Homepage: http://www.fuxoft.cz
My blog: http://fuxoft.blogspot.com
My Jabber/GoogleTalk ID: fuxoft@gmail.com
My ICQ: 2745855