lua-users home
lua-l archive

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


I replaced all the lua_open... calls with the one call to luaL_openlibs() 
and had no more problems.

As DB said in the previous message, I have to use lua_call(...) which is 
used by the _openlibs() routine.

Thanks for the feedback.

Ed


"steffenj" <steffenj@arcor.de> wrote in message 
20060924192243.32D472D7617@mail-in-01.arcor-online.net">news:20060924192243.32D472D7617@mail-in-01.arcor-online.net...
I once had this problem, too. Use either

luaL_openlibs(pLuaState);

to open ALL libraries at once, or look at the source of this function to see
how they are called if you must open only specific libraries. For a test app
openlibs should suffice though.

See 7.3 - Changes in the API (first bullet point):
http://www.lua.org/manual/5.1/manual.html#7.3