• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Compiling Error While Compiling

Bubble2Death

New Member
Joined
Oct 21, 2012
Messages
21
Reaction score
0
Location
Germany
i've getting this error while compiling on my Linux-Debian server:
Code:
luascript.cpp: In member function ‘bool LuaInterface::loadDirectory(std::string, bool, bool, Npc*)’:
luascript.cpp:769: error: ‘struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >’ has no member named ‘string’
CXX    mailbox.o
make[1]: *** [luascript.o] Fehler 1
make[1]: *** Warte auf noch nicht beendete Prozesse...
make[1]: Leaving directory `/home/otserver/0.3/path_970/sources'
make: *** [all] Fehler 2

and since iám not that much into C++ i have absolute no idea how i could fix this... : /
 
Find something like this (Line 769)
Code:
(!file_filter(itr->path().filename().string));

and change to:
Code:
if (!file_filter(itr->path().filename()));

- - - Updated - - -

@up grrrr! :$
 
post line 769, or try removing .string()
this is line 765 - 778
Code:
for(boost::filesystem::directory_iterator it(dir), end; it != end; ++it)
	{
		std::string s = it->path().filename().string();
		if(!loadSystems && s[0] == '_')
			continue; //<--- LINE 769

		if(boost::filesystem::is_directory(it->status()))
		{
			if(recursively && !loadDirectory(dir + s, recursively, loadSystems, npc))
				return false;
		}
		else if((s.size() > 4 ? s.substr(s.size() - 4) : "") == ".lua")
			files.push_back(s);
	}
 
the line which i should replace don't exist.. o.0


-- Update --
shouldn't ignore Cyko's post next time.. it works,
thank you guys xD
 
Last edited:
Back
Top