Hello boys.
I've been trying for several days compiling TFS 0.4. I have VPS on Debian 9 system. I follow a lot of tutorials but whenever i got a lot of bugs. Now i Follow this tutorial
and im practically at the end
but i have error:
Here is my talkaction 233:11 Line
Can anyone help me compile TFS 0.4?
I've been trying for several days compiling TFS 0.4. I have VPS on Debian 9 system. I follow a lot of tutorials but whenever i got a lot of bugs. Now i Follow this tutorial
but i have error:
Code:
talkaction.cpp:233:11: error: no match for ‘operator<<’ (operand types are ‘std::stringstream {aka std::__cxx11::basic_stringstream<char>}’ and ‘std::stringstream {aka std::__cxx11::basic_stringstream<char>}’)
sl << ss;
~~~^~~~~
talkaction.cpp:233:14: error: cannot bind ‘std::basic_ostream<char>’ lvalue to ‘std::basic_ostream<char>&&’
sl << ss;
^~
C++:
{
PlayerCast pc = p->getCast();
std::stringstream ss, sl;
ss << Player::cSpectators.size() << " Viewers: ";
bool first = true;
for(AutoList<ProtocolGame>::iterator it = Player::cSpectators.begin(); it != Player::cSpectators.end(); ++it) {
if(it->second->getPlayer() == p)
{
sl.clear();
sl << ss;
if(first)
first = false;
else
ss << ", ";
ss << it->second->getViewerName();
if(ss.str().length() > 250)
{
ss.clear();
ss << sl.str() << "...";
break;
}
}
}
std::string out = ss.str();
pg->publicSendMessage(p, SPEAK_PRIVATE, out);
}
Can anyone help me compile TFS 0.4?
Post automatically merged:
C++:
talkaction.cpp:233:11: error: no match for ‘operator<<’ (operand types are ‘std::stringstream {aka std::__cxx11::basic_stringstream<char>}’ and ‘std::stringstream {aka std::__cxx11::basic_stringstream<char>}’)
sl << ss;
~~~^~~~~
talkaction.cpp:233:14: error: cannot bind ‘std::basic_ostream<char>’ lvalue to ‘std::basic_ostream<char>&&’
sl << ss;
^~