• 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!

Compiling luascript.cpp no match for 'operator+'

seleo

Active Member
Joined
Jun 6, 2012
Messages
498
Reaction score
33
Location
Egypt
hello
i got some errors while im trying to compile theforgottenserver in ubuntu

here is the errors log



Code:
TheForgottenServer build script- seems to speed things up ALOT.
CCache: OK
CCache binaries located in /usr/lib/ccache
Building on 8 cores, using 9 processes
make  all-am
make[1]: Entering directory `/var/source'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1  -O2 -fomit-frame-pointer -D__USE_MYSQL__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Wno-strict-aliasing -pipe -MT luascript.o -MD -MP -MF .deps/luascript.Tpo -c -o luascript.o luascript.cpp
make[1]: *** No rule to make target `rsa.o', needed by `theforgottenserver'.  Stop.
make[1]: *** Waiting for unfinished jobs....
In file included from luascript.cpp:26:0:
player.h: In member function 'uint32_t Player::getCastIpByName(std::string)':
player.h:213:11: warning: converting to non-pointer type 'uint32_t {aka unsigned int}' from NULL [-Wconversion-null]
luascript.cpp: In member function 'bool LuaInterface::loadDirectory(const string&, Npc*, bool)':
luascript.cpp:744:61: error: no match for 'operator+' in 'boost::filesystem3::path::filename() const() + "/"'
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory `/var/source'
make: *** [all] Error 2
orion2741:/var/source#

this is my luascript.cpp file

luascript.cpp - Pastebin.com

and this is player.h file

player.h - Pastebin.com
 
Last edited:
i got this error also
Code:
luascript.cpp: In member function 'bool LuaInterface::loadDirectory(const string&, Npc*, bool)':
luascript.cpp:744:61: error: no match for 'operator+' in 'boost::filesystem3::path::filename() const() + "/"'
 
Back
Top