Calvin Candie
Mystica.pl project.
Hi, when I am trying to compile trunk r3884 on Ubuntu 14.04 there is an error:
I changed leaf() to path().filename().string(), but it still doesnt working. Anyone knows why it happens?
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: