[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Can't get lua 5.1 to work.
- From: Javier Guerra <javier@...>
- Date: Sun, 19 Mar 2006 10:56:57 -0500
On Saturday 18 March 2006 1:50 pm, mempko wrote:
> Hello everyone, I am using lua 5.1 on my mac os 10.4.5
> For some strange reason, this simple program does nothing...meaning, it
> outputs nothing.
>
> I have also tried using luaL_loadfile where I simply have
>
> print "hello world";
>
> in a file and nothing prints. So I guess my question is what do I need
> to do to create a proper lua state, load a script, and call a function
> within the script in lua 5.1, since all examples are old.
luaL_loadfile and luaL_loadstring only do that: load the Lua code. you still
have to execute it.
add lua_call after loading
--
Javier
Attachment:
pgp4bm7kOPpFH.pgp
Description: PGP signature