• 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 Compile Error

FakeJR

Coffee?
Joined
Nov 25, 2014
Messages
128
Reaction score
38
I recently downloaded Code::Blocks from otland and I tried to compile tfs 0.4 with it, now I keep getting this error:
" \luascript.cpp:744: error: no match for 'operator+' in 'boost::filesystem3::path::filename() const() + "/"' "

Thanks,
 
line 744 of luascript.cpp:

change it to:

Code:
if(recursively && !loadDirectory((it->path() / s).native(), npc, recursively))
 
line 744 of luascript.cpp:

change it to:

Code:
if(recursively && !loadDirectory((it->path() / s).native(), npc, recursively))
Thanks, but now I recieved another error:

luascript.cpp:744: error: no matching function for call to 'LuaInterface::loadDirectory(const std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, Npc*&, bool&)'

\luascript.cpp:736: note: candidates are: bool LuaInterface::loadDirectory(const std::string&, Npc*, bool)

EDIT: Line on 736: "bool LuaInterface::loadDirectory(const std::string& dir, Npc* npc/* = NULL*/, bool recursively/* = false*/)"
 
Back
Top