stillbeben / hopmod

Export of Sauerbraten hopmod Server from code.google.com/p/hopmod
3 stars 0 forks source link

Problem with luaL_register #27

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
make is failing with following error:

/root/hopmod/src/hopmod/lua/register_class.cpp: In function ‘void 
lua::register_class(lua_State*, const char*, const luaL_Reg*)’:
/root/hopmod/src/hopmod/lua/register_class.cpp:10:44: error: 
‘luaL_register’ was not declared in this scope
     luaL_register(L, NULL, member_functions);
                                            ^
make[2]: *** [src/CMakeFiles/lua_modules.dir/hopmod/lua/register_class.cpp.o] 
Error 1
make[1]: *** [src/CMakeFiles/lua_modules.dir/all] Error 2
make: *** [all] Error 2

looks like the function luaL_register is depraced?! 
http://lua.2524044.n2.nabble.com/Why-did-luaL-openlib-luaL-register-go-td7649023
.html

Original issue reported on code.google.com by obi12...@gmail.com on 14 Dec 2014 at 6:40