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

Solved Error- compiling trunk r3884

Calvin Candie

Mystica.pl project.
Joined
May 2, 2014
Messages
22
Reaction score
1
Location
Poland
Hi, when I am trying to compile trunk r3884 on Ubuntu 14.04 there is an error:


Code:
luascript.cpp: In member function ‘bool LuaInterface::loadDirectory(const string&, Npc*, bool)’:
luascript.cpp:744:59: error: no match for ‘operator+’ (operand types are ‘boost::filesystem::path’ and ‘const char [2]’)
    if(recursively && !loadDirectory(it->path().filename() + "/" + s, npc, recursively))
                                                           ^
mv -f .deps/items.Tpo .deps/items.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2   -O2 -fomit-frame-pointer -D__USE_MYSQL__    -D__WAR_SYSTEM__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -pipe -MT manager.o -MD -MP -MF .deps/manager.Tpo -c -o manager.o manager.cpp
make[1]: *** [luascript.o] Błąd 1
make[1]: *** Oczekiwanie na niezakończone zadania....
mv -f .deps/mailbox.Tpo .deps/mailbox.Po
mv -f .deps/manager.Tpo .deps/manager.Po
make[1]: Opuszczenie katalogu `/home/kamil/Pulpit/trunk/trunk.r3884'
make: *** [all] Błąd 2
kamil@kamil:~/Pulpit/trunk/trunk.r3884$

I changed leaf() to path().filename().string(), but it still doesnt working. Anyone knows why it happens?
 
Last edited:
Back
Top