lua-users home
lua-l archive

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


I am using Lua 4.0 and Lua complains that there is an error in the Main part
of the chunk.  I have tried making other baselib calls, and they are not
working
either.

>
>> What exactly is the complaint? Which version of Lua you are running?
>> -- Roberto
>>
>>>I am trying to use standard library calls, and lua does not seem to be
>>>finding the functions.  I have called lua_baselibopen() and it does not
seem
>>>to make a difference.  My entire script is:
>>>
>>>collectgarbage(1)
>>>
>>>I step through the code when lua_baselibopen is called, and it looks like
it
>>>is being properly added, but the call still fails.  I have confirmed that
>>>the interpreter being called is the same as the one the functions are
being
>>>added to, but to no avail.  Lua complains that there is an error in the
Main
>>>part of the chunk.
>>>
>>>Does anyone know what the problem might be, or how I could fix it?
>>>
>>>Thanks!