• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Compiling Compiling problem

kladi

New Member
Joined
Jun 20, 2008
Messages
62
Reaction score
0
I've got some problem.

Code:
configmanager.cpp: In member function 'bool ConfigManager::load()':
configmanager.cpp:44: error: 'lua_open' was not declared in this scope
make[1]: *** [configmanager.o] Error 1
make[1]: *** Waiting for unfinished jobs....
luascript.cpp: In static member function 'static int32_t LuaInterface::handleFunction(lua_State*)':
luascript.cpp:936: error: 'LUA_GLOBALSINDEX' was not declared in this scope
luascript.cpp: In static member function 'static std::string LuaInterface::getGlobalString(lua_State*, const std::string&, const std::string&)':
luascript.cpp:1307: error: 'lua_strlen' was not declared in this scope
luascript.cpp: In member function 'virtual void LuaInterface::registerFunctions()':
luascript.cpp:2439: error: 'luaL_register' was not declared in this scope
make[1]: *** [luascript.o] Error 1

Anyone know what's the problem?
 
As it is written, you used things which you haven't declared : lua_open,LUA_GLOBALSINGDEX. lua_strlen, luaL_register \o/
 
Back
Top