# Missing std::string::operator=(std::string&&)

**URL:** <https://root-forum.cern.ch/t/missing-std-string-operator-std-string/20036>\
**Category:** Cling\
**Created:** [October 19, 2015, 9:39am UTC](https://root-forum.cern.ch/t/missing-std-string-operator-std-string/20036 "2015-10-19T09:39:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![andrase](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@andrase](https://root-forum.cern.ch/u/andrase)\
**Post date:** [October 19, 2015, 9:39am UTC](https://root-forum.cern.ch/t/missing-std-string-operator-std-string/20036/1 "2015-10-19T09:39:01Z")

</div>

When I try to compile

“#include \n”  
"#include \<stdio.h\>\n"  
“std::string& test(std::string& s) {\n”  
“s = s + s;\n”  
//“std::string ss = s + s;\n”  
//“s = ss;\n”  
“return s;\n”  
"}";

I end up with “IncrementalExecutor: calling unresolved symbol, see previous error message!”, with no previous error message. A little digging around revealed that the unresolved symbol is “\_ZNSsaSEOSs”, IOW ‘std::string::operator=(std::string&&)’ – the commented out variant above compiles and works fine. What can be the reason for the missing symbol? (I am on redhat, gcc 4.8.2 if that’s relevant.)

Thanks,  
Andras

---

_[View the full topic](https://root-forum.cern.ch/t/missing-std-string-operator-std-string/20036)._
