tibera
Active Member
any can help me, i got this error in compiling.
ubuntu 16.04
command: ./autogen.sh && ./configure --enable-mysql -enable-server-diag && make
problem fixed.
ubuntu 16.04
command: ./autogen.sh && ./configure --enable-mysql -enable-server-diag && make
Lua:
CXX luascript.o
luascript.cpp:5210:9: error: ‘LuaScriptInterface’ has not been declared
int32_t LuaScriptInterface::luaGetCreatureStorage(lua_State* L)
^
luascript.cpp: In function ‘int32_t luaGetCreatureStorage(lua_State*)’:
luascript.cpp:5213:31: error: ‘popNumber’ was not declared in this scope
uint32_t key = popNumber(L);
^
luascript.cpp:5214:36: error: ‘getEnv’ was not declared in this scope
ScriptEnviroment* env = getEnv();
^
luascript.cpp:5218:46: error: no matching function for call to ‘Creature::getSto rage(uint32_t&, std::__cxx11::string&)’
if(creature->getStorage(key, strValue))
^
In file included from player.h:23:0,
from luascript.cpp:26:
creature.h:344:16: note: candidate: virtual bool Creature::getStorage(const stri ng&, std::__cxx11::string&) const
virtual bool getStorage(const std::string& key, std::string& value) const;
^
creature.h:344:16: note: no known conversion for argument 1 from ‘uint32_t {ak a unsigned int}’ to ‘const string& {aka const std::__cxx11::basic_string<char>&} ’
In file included from configmanager.h:20:0,
from otpch.h:40,
from luascript.cpp:17:
luascript.cpp:5237:54: error: ‘getError’ was not declared in this scope
errorEx(getError(LUA_ERROR_CREATURE_NOT_FOUND));
^
luascript.h:235:40: note: in definition of macro ‘errorEx’
#define errorEx(a) error(__FUNCTION__, a)
^
luascript.h:235:41: error: ‘error’ was not declared in this scope
#define errorEx(a) error(__FUNCTION__, a)
^
luascript.cpp:5237:9: note: in expansion of macro ‘errorEx’
errorEx(getError(LUA_ERROR_CREATURE_NOT_FOUND));
^
luascript.h:235:41: note: suggested alternatives:
#define errorEx(a) error(__FUNCTION__, a)
^
luascript.cpp:5237:9: note: in expansion of macro ‘errorEx’
errorEx(getError(LUA_ERROR_CREATURE_NOT_FOUND));
^
In file included from /usr/include/boost/asio/detail/impl/posix_mutex.ipp:24:0,
from /usr/include/boost/asio/detail/posix_mutex.hpp:73,
from /usr/include/boost/asio/detail/mutex.hpp:25,
from /usr/include/boost/asio/detail/service_registry.hpp:20,
from /usr/include/boost/asio/impl/io_service.hpp:19,
from /usr/include/boost/asio/io_service.hpp:767,
from /usr/include/boost/asio/basic_io_object.hpp:19,
from /usr/include/boost/asio/basic_socket.hpp:20,
from /usr/include/boost/asio/basic_datagram_socket.hpp:20,
from /usr/include/boost/asio.hpp:21,
from otsystem.h:34,
from luascript.h:20,
from configmanager.h:20,
from otpch.h:40,
from luascript.cpp:17:
/usr/include/boost/asio/error.hpp:66:17: note: ‘boost::asio::error’
namespace error {
^
In file included from /usr/include/boost/asio.hpp:82:0,
from otsystem.h:34,
from luascript.h:20,
from configmanager.h:20,
from otpch.h:40,
from luascript.cpp:17:
/usr/include/boost/asio/placeholders.hpp:55:22: note: ‘boost::asio::placeholde rs::error’
inline boost::arg<1> error()
^
luascript.cpp: At global scope:
luascript.cpp:5243:9: error: ‘LuaScriptInterface’ has not been declared
int32_t LuaScriptInterface::luaDoCreatureSetStorage(lua_State* L)
^
luascript.cpp: In function ‘int32_t luaDoCreatureSetStorage(lua_State*)’:
luascript.cpp:5254:28: error: ‘popNumber’ was not declared in this scope
popNumber(L);
^
luascript.cpp:5256:32: error: ‘popString’ was not declared in this scope
value = popString(L);
^
luascript.cpp:5264:31: error: ‘popNumber’ was not declared in this scope
uint32_t key = popNumber(L);
^
luascript.cpp:5265:36: error: ‘getEnv’ was not declared in this scope
ScriptEnviroment* env = getEnv();
^
luascript.cpp:5269:46: error: no matching function for call to ‘Creature::setSto rage(uint32_t&, std::__cxx11::string&)’
nil = creature->setStorage(key, value);
^
In file included from player.h:23:0,
from luascript.cpp:26:
creature.h:345:16: note: candidate: virtual bool Creature::setStorage(const stri ng&, const string&)
virtual bool setStorage(const std::string& key, const std::string& value);
^
creature.h:345:16: note: no known conversion for argument 1 from ‘uint32_t {ak a unsigned int}’ to ‘const string& {aka const std::__cxx11::basic_string<char>&} ’
luascript.cpp:5271:35: error: no matching function for call to ‘Creature::eraseS torage(uint32_t&)’
creature->eraseStorage(key);
^
In file included from player.h:23:0,
from luascript.cpp:26:
creature.h:346:16: note: candidate: virtual void Creature::eraseStorage(const st ring&)
virtual void eraseStorage(const std::string& key) {storageMap.erase(key);}
^
creature.h:346:16: note: no known conversion for argument 1 from ‘uint32_t {ak a unsigned int}’ to ‘const string& {aka const std::__cxx11::basic_string<char>&} ’
In file included from configmanager.h:20:0,
from otpch.h:40,
from luascript.cpp:17:
luascript.cpp:5277:54: error: ‘getError’ was not declared in this scope
errorEx(getError(LUA_ERROR_CREATURE_NOT_FOUND));
^
luascript.h:235:40: note: in definition of macro ‘errorEx’
#define errorEx(a) error(__FUNCTION__, a)
^
luascript.h:235:41: error: ‘error’ was not declared in this scope
#define errorEx(a) error(__FUNCTION__, a)
^
luascript.cpp:5277:9: note: in expansion of macro ‘errorEx’
errorEx(getError(LUA_ERROR_CREATURE_NOT_FOUND));
^
luascript.h:235:41: note: suggested alternatives:
#define errorEx(a) error(__FUNCTION__, a)
^
luascript.cpp:5277:9: note: in expansion of macro ‘errorEx’
errorEx(getError(LUA_ERROR_CREATURE_NOT_FOUND));
^
In file included from /usr/include/boost/asio/detail/impl/posix_mutex.ipp:24:0,
from /usr/include/boost/asio/detail/posix_mutex.hpp:73,
from /usr/include/boost/asio/detail/mutex.hpp:25,
from /usr/include/boost/asio/detail/service_registry.hpp:20,
from /usr/include/boost/asio/impl/io_service.hpp:19,
from /usr/include/boost/asio/io_service.hpp:767,
from /usr/include/boost/asio/basic_io_object.hpp:19,
from /usr/include/boost/asio/basic_socket.hpp:20,
from /usr/include/boost/asio/basic_datagram_socket.hpp:20,
from /usr/include/boost/asio.hpp:21,
from otsystem.h:34,
from luascript.h:20,
from configmanager.h:20,
from otpch.h:40,
from luascript.cpp:17:
/usr/include/boost/asio/error.hpp:66:17: note: ‘boost::asio::error’
namespace error {
^
In file included from /usr/include/boost/asio.hpp:82:0,
from otsystem.h:34,
from luascript.h:20,
from configmanager.h:20,
from otpch.h:40,
from luascript.cpp:17:
/usr/include/boost/asio/placeholders.hpp:55:22: note: ‘boost::asio::placeholde rs::error’
inline boost::arg<1> error()
^
Makefile:567: recipe for target 'luascript.o' failed
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory '/home/magnun/ot/src'
Makefile:418: recipe for target 'all' failed
make: *** [all] Error 2
Post automatically merged:
problem fixed.
Last edited: