lua-users home
lua-l archive

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


I ran the Lua program alone. It runs fine. I have all FLTK packages.

My main question is whether I can call a Lua program which is using
FLTK package from C program.

If its possible please help me by giving a sample program.

Please let me know if any libraries needed.

Thanks
Santhosh Reddy

On 11/24/11, steve donovan <steve.j.donovan@gmail.com> wrote:
> On Thu, Nov 24, 2011 at 7:29 AM, santhosh reddy
> <santhoshreddy539@gmail.com> wrote:
>> -----------------------
>> Normally when I run this program I get the output.
>> I run in terminal as "root# murgaLua do-me.lua"
>
> There's the problem - your bare-bones Lua interpreter doesn't have all
> the FLTK libraries, etc.
>
> You should find these libraries as separate extensions and require() them.
>
> You should check the result of luaL_dofile; it will be non-zero in
> case of errors, and will push the error message as a string (so you
> can then use lua_tostring(L,-1) to access the message)
>
>
> steve d.
>
>