
I want to run a .cpp ( can`t attach it as it is not allowed pcd_viewer.cpp)file but there are some problems as you can see in the make file
/usr/include/c++/6/bits/basic_string.h: In instantiation of ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits , _Alloc>::append(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’: /usr/include/c++/6/bits/basic_string.h:4985:7: required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::__cxx11::basic _string<_CharT, _Traits, _Alloc>&, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ /usr/include/c++/6/system_error:343:30: required from here /usr/include/c++/6/bits/basic_string.h:1129:17: error: ‘_M_check_length’ was not declared in this scope _M_check_length(size_type(0), __n, "basic_string::append"); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/basic_string.h:1130:18: error: ‘_M_append’ was not declared in this scope return _M_append(__s, __n); ~~~~~~~~~^~~~~~~~~~ /usr/include/c++/6/bits/basic_string.h: In instantiation of ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::push_back(_CharT) [with _CharT = char ; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’: /usr/include/c++/6/bits/basic_string.h:1062:2: required from ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Tra its, _Alloc>::operator+=(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ /usr/include/eigen3/Eigen/src/Core/IO.h:67:20: required from here /usr/include/c++/6/bits/basic_string.h:1182:25: error: ‘class std::__cxx11::basic_string<char>’ has no member named ‘capacity’ if (__size + 1 > this->capacity()) ~~~~~~^~~~~~~~ /usr/include/c++/6/bits/basic_string.h:1183:10: error: ‘class std::__cxx11::basic_string<char>’ has no member named ‘_M_mutate’; did you mean ‘_M_data’? this->_M_mutate(__size, size_type(0), 0, size_type(1)); ~~~~~~^~~~~~~~~ /usr/include/c++/6/bits/basic_string.h:1185:8: error: ‘class std::__cxx11::basic_string<char>’ has no member named ‘_M_set_length’ this->_M_set_length(__size + 1); ~~~~~~^~~~~~~~~~~~~ CMakeFiles/pcd_viewer.dir/build.make:62: recipe for target 'CMakeFiles/pcd_viewer.dir/pcd_viewer.cpp.o' failed make[2]: *** [CMakeFiles/pcd_viewer.dir/pcd_viewer.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/pcd_viewer.dir/all' failed make[1]: *** [CMakeFiles/pcd_viewer.dir/all] Error 2
Can anyone help? I will provide any further information needed upon request!
Thanks