lua-users home
lua-l archive

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


> 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.