在跑cylinder3D包,需要安装spconv1.2.1,过程中报错如下:
/usr/include/c++/7/bits/basic_string.tcc:1067:16: error: cannot call member function ‘void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]’ without object
__p->_M_set_sharable();
解决办法:将/usr/include/c++/7/bits/basic_string.tcc:1067:16 中
sudo gedit /usr/include/c++/7/bits/basic_string.tcc
将
__p->_M_set_sharable()
改为
(*__p)._M_set_sharable()
问题解决!!!