[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Error when opening the IO lib
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 7 May 2007 11:24:50 -0300
> When using the lib lua5.1.lib in my project, I have the runtime error "PANIC: unprotected error in call to Lua API (no calling environment)".
luaopen_io needs to be lua_call'ed.
http://lua-users.org/wiki/LuaFaq
To open all libraries, use luaL_openlibs.