• 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 Strange error

Kyou

New Member
Joined
May 16, 2012
Messages
6
Reaction score
0
Hello, ppl.

Someone knows how to fix this error in compiling?

Code:
1>..\luascript.cpp(769): error C2039: 'string' : is not a member of 'std::basic_string<_Elem,_Traits,_Ax>'
1>          with
1>          [
1>              _Elem=char,
1>              _Traits=std::char_traits<char>,
1>              _Ax=std::allocator<char>
1>          ]

Code:
1>..\scriptmanager.cpp(147): error C2039: 'string' : is not a member of 'std::basic_string<_Elem,_Traits,_Ax>'
1>          with
1>          [
1>              _Elem=char,
1>              _Traits=std::char_traits<char>,
1>              _Ax=std::allocator<char>
1>          ]

I cannot compile any sources with the Visual Studio because this cursed error.
 
Remove .string() or update boost(?).
Code:
std::string s = it->path().filename()[COLOR=#ff0000].string()[/COLOR];
 
Back
Top