/usr/bin/ld: /tmp/cc5Lj0yk.o: warning: relocation against `_ZTISt9bad_alloc' in read-only section `.text._ZN5Eigen8internal19throw_std_bad_allocEv[_ZN5Eigen8internal19throw_std_bad_allocEv]' /usr/bin/ld: /tmp/cc5Lj0yk.o: in function `main': foo.cc:(.text+0xbd): undefined reference to `std::cout' /usr/bin/ld: foo.cc:(.text+0xcc): undefined reference to `std::basic_ostream >& std::endl >(std::basic_ostream >&)' /usr/bin/ld: foo.cc:(.text+0xd7): undefined reference to `std::ostream::operator<<(std::ostream& (*)(std::ostream&))' /usr/bin/ld: /tmp/cc5Lj0yk.o: in function `std::exception::exception()': foo.cc:(.text._ZNSt9exceptionC2Ev[_ZNSt9exceptionC5Ev]+0xb): undefined reference to `vtable for std::exception' /usr/bin/ld: /tmp/cc5Lj0yk.o: in function `std::bad_alloc::bad_alloc()': foo.cc:(.text._ZNSt9bad_allocC2Ev[_ZNSt9bad_allocC5Ev]+0x1b): undefined reference to `vtable for std::bad_alloc' /usr/bin/ld: /tmp/cc5Lj0yk.o: in function `Eigen::internal::throw_std_bad_alloc()': foo.cc:(.text._ZN5Eigen8internal19throw_std_bad_allocEv[_ZN5Eigen8internal19throw_std_bad_allocEv]+0xf): undefined reference to `__cxa_allocate_exception' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal19throw_std_bad_allocEv[_ZN5Eigen8internal19throw_std_bad_allocEv]+0x21): undefined reference to `std::bad_alloc::~bad_alloc()' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal19throw_std_bad_allocEv[_ZN5Eigen8internal19throw_std_bad_allocEv]+0x2b): undefined reference to `typeinfo for std::bad_alloc' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal19throw_std_bad_allocEv[_ZN5Eigen8internal19throw_std_bad_allocEv]+0x36): undefined reference to `__cxa_throw' /usr/bin/ld: /tmp/cc5Lj0yk.o: in function `Eigen::IOFormat::IOFormat(int, int, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, char)': foo.cc:(.text._ZN5Eigen8IOFormatC2EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c[_ZN5Eigen8IOFormatC5EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c]+0x34): undefined reference to `std::__cxx11::basic_string, std::allocator >::basic_string(std::__cxx11::basic_string, std::allocator > const&)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8IOFormatC2EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c[_ZN5Eigen8IOFormatC5EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c]+0x4b): undefined reference to `std::__cxx11::basic_string, std::allocator >::basic_string(std::__cxx11::basic_string, std::allocator > const&)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8IOFormatC2EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c[_ZN5Eigen8IOFormatC5EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c]+0x62): undefined reference to `std::__cxx11::basic_string, std::allocator >::basic_string(std::__cxx11::basic_string, std::allocator > const&)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8IOFormatC2EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c[_ZN5Eigen8IOFormatC5EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c]+0x79): undefined reference to `std::__cxx11::basic_string, std::allocator >::basic_string(std::__cxx11::basic_string, std::allocator > const&)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8IOFormatC2EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c[_ZN5Eigen8IOFormatC5EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c]+0x93): undefined reference to `std::__cxx11::basic_string, std::allocator >::basic_string(std::__cxx11::basic_string, std::allocator > const&)' /usr/bin/ld: /tmp/cc5Lj0yk.o:foo.cc:(.text._ZN5Eigen8IOFormatC2EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c[_ZN5Eigen8IOFormatC5EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c]+0xe8): more undefined references to `std::__cxx11::basic_string, std::allocator >::basic_string(std::__cxx11::basic_string, std::allocator > const&)' follow /usr/bin/ld: /tmp/cc5Lj0yk.o: in function `Eigen::IOFormat::IOFormat(int, int, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, char)': foo.cc:(.text._ZN5Eigen8IOFormatC2EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c[_ZN5Eigen8IOFormatC5EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c]+0x135): undefined reference to `std::__cxx11::basic_string, std::allocator >::length() const' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8IOFormatC2EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c[_ZN5Eigen8IOFormatC5EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c]+0x154): undefined reference to `std::__cxx11::basic_string, std::allocator >::operator+=(char)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8IOFormatC2EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c[_ZN5Eigen8IOFormatC5EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c]+0x176): undefined reference to `std::__cxx11::basic_string, std::allocator >::operator[](unsigned long)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8IOFormatC2EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c[_ZN5Eigen8IOFormatC5EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c]+0x1b9): undefined reference to `std::__cxx11::basic_string, std::allocator >::~basic_string()' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8IOFormatC2EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c[_ZN5Eigen8IOFormatC5EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c]+0x1d0): undefined reference to `std::__cxx11::basic_string, std::allocator >::~basic_string()' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8IOFormatC2EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c[_ZN5Eigen8IOFormatC5EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c]+0x1e0): undefined reference to `std::__cxx11::basic_string, std::allocator >::~basic_string()' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8IOFormatC2EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c[_ZN5Eigen8IOFormatC5EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c]+0x1f5): undefined reference to `std::__cxx11::basic_string, std::allocator >::~basic_string()' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8IOFormatC2EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c[_ZN5Eigen8IOFormatC5EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c]+0x20a): undefined reference to `std::__cxx11::basic_string, std::allocator >::~basic_string()' /usr/bin/ld: /tmp/cc5Lj0yk.o:foo.cc:(.text._ZN5Eigen8IOFormatC2EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c[_ZN5Eigen8IOFormatC5EiiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8_S8_S8_S8_c]+0x21f): more undefined references to `std::__cxx11::basic_string, std::allocator >::~basic_string()' follow /usr/bin/ld: /tmp/cc5Lj0yk.o: in function `Eigen::internal::manage_caching_sizes(Eigen::Action, long*, long*, long*)': foo.cc:(.text._ZN5Eigen8internal20manage_caching_sizesENS_6ActionEPlS2_S2_[_ZN5Eigen8internal20manage_caching_sizesENS_6ActionEPlS2_S2_]+0x32): undefined reference to `__cxa_guard_acquire' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal20manage_caching_sizesENS_6ActionEPlS2_S2_[_ZN5Eigen8internal20manage_caching_sizesENS_6ActionEPlS2_S2_]+0x59): undefined reference to `__cxa_guard_release' /usr/bin/ld: /tmp/cc5Lj0yk.o: in function `std::__cxx11::basic_string, std::allocator >::basic_string >(char const*, std::allocator const&)': foo.cc:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC5IS3_EEPKcRKS3_]+0x21): undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_local_data()' /usr/bin/ld: foo.cc:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC5IS3_EEPKcRKS3_]+0x36): undefined reference to `std::__cxx11::basic_string, std::allocator >::_Alloc_hider::_Alloc_hider(char*, std::allocator const&)' /usr/bin/ld: foo.cc:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC5IS3_EEPKcRKS3_]+0x4c): undefined reference to `std::__throw_logic_error(char const*)' /usr/bin/ld: /tmp/cc5Lj0yk.o: in function `Eigen::IOFormat::~IOFormat()': foo.cc:(.text._ZN5Eigen8IOFormatD2Ev[_ZN5Eigen8IOFormatD5Ev]+0x1a): undefined reference to `std::__cxx11::basic_string, std::allocator >::~basic_string()' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8IOFormatD2Ev[_ZN5Eigen8IOFormatD5Ev]+0x2c): undefined reference to `std::__cxx11::basic_string, std::allocator >::~basic_string()' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8IOFormatD2Ev[_ZN5Eigen8IOFormatD5Ev]+0x3c): undefined reference to `std::__cxx11::basic_string, std::allocator >::~basic_string()' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8IOFormatD2Ev[_ZN5Eigen8IOFormatD5Ev]+0x4c): undefined reference to `std::__cxx11::basic_string, std::allocator >::~basic_string()' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8IOFormatD2Ev[_ZN5Eigen8IOFormatD5Ev]+0x5c): undefined reference to `std::__cxx11::basic_string, std::allocator >::~basic_string()' /usr/bin/ld: /tmp/cc5Lj0yk.o:foo.cc:(.text._ZN5Eigen8IOFormatD2Ev[_ZN5Eigen8IOFormatD5Ev]+0x6c): more undefined references to `std::__cxx11::basic_string, std::allocator >::~basic_string()' follow /usr/bin/ld: /tmp/cc5Lj0yk.o: in function `std::__cxx11::basic_string, std::allocator >::_M_construct(char const*, char const*, std::forward_iterator_tag)::_Guard::~_Guard()': foo.cc:(.text._ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tagEN6_GuardD2Ev[_ZZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tagEN6_GuardD5Ev]+0x23): undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_dispose()' /usr/bin/ld: /tmp/cc5Lj0yk.o: in function `void std::__cxx11::basic_string, std::allocator >::_M_construct(char const*, char const*, std::forward_iterator_tag)': foo.cc:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0x60): undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_create(unsigned long&, unsigned long)' /usr/bin/ld: foo.cc:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0x72): undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_data(char*)' /usr/bin/ld: foo.cc:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0x85): undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_capacity(unsigned long)' /usr/bin/ld: foo.cc:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0xaf): undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_data() const' /usr/bin/ld: foo.cc:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0xc5): undefined reference to `std::__cxx11::basic_string, std::allocator >::_S_copy_chars(char*, char const*, char const*)' /usr/bin/ld: foo.cc:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0xe0): undefined reference to `std::__cxx11::basic_string, std::allocator >::_M_set_length(unsigned long)' /usr/bin/ld: /tmp/cc5Lj0yk.o: in function `std::ostream& Eigen::internal::print_matrix >(std::ostream&, Eigen::Matrix const&, Eigen::IOFormat const&)': foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x4f): undefined reference to `std::basic_ostream >& std::operator<< , std::allocator >(std::basic_ostream >&, std::__cxx11::basic_string, std::allocator > const&)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x68): undefined reference to `std::basic_ostream >& std::operator<< , std::allocator >(std::basic_ostream >&, std::__cxx11::basic_string, std::allocator > const&)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x163): undefined reference to `std::__cxx11::basic_stringstream, std::allocator >::basic_stringstream()' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x197): undefined reference to `std::basic_ios >::copyfmt(std::basic_ios > const&)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x1c9): undefined reference to `std::ostream::operator<<(double)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x1df): undefined reference to `std::__cxx11::basic_stringstream, std::allocator >::str() const' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x1eb): undefined reference to `std::__cxx11::basic_string, std::allocator >::length() const' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x221): undefined reference to `std::__cxx11::basic_string, std::allocator >::~basic_string()' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x230): undefined reference to `std::__cxx11::basic_stringstream, std::allocator >::~basic_stringstream()' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x2c0): undefined reference to `std::basic_ios >::fill() const' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x2dc): undefined reference to `std::basic_ostream >& std::operator<< , std::allocator >(std::basic_ostream >&, std::__cxx11::basic_string, std::allocator > const&)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x310): undefined reference to `std::basic_ostream >& std::operator<< , std::allocator >(std::basic_ostream >&, std::__cxx11::basic_string, std::allocator > const&)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x32d): undefined reference to `std::basic_ostream >& std::operator<< , std::allocator >(std::basic_ostream >&, std::__cxx11::basic_string, std::allocator > const&)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x372): undefined reference to `std::basic_ios >::fill(char)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x3d1): undefined reference to `std::ostream::operator<<(double)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x3fe): undefined reference to `std::basic_ostream >& std::operator<< , std::allocator >(std::basic_ostream >&, std::__cxx11::basic_string, std::allocator > const&)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x443): undefined reference to `std::basic_ios >::fill(char)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x4a1): undefined reference to `std::ostream::operator<<(double)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x4de): undefined reference to `std::basic_ostream >& std::operator<< , std::allocator >(std::basic_ostream >&, std::__cxx11::basic_string, std::allocator > const&)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x519): undefined reference to `std::basic_ostream >& std::operator<< , std::allocator >(std::basic_ostream >&, std::__cxx11::basic_string, std::allocator > const&)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x556): undefined reference to `std::basic_ostream >& std::operator<< , std::allocator >(std::basic_ostream >&, std::__cxx11::basic_string, std::allocator > const&)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x5c2): undefined reference to `std::basic_ios >::fill(char)' /usr/bin/ld: foo.cc:(.text._ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE[_ZN5Eigen8internal12print_matrixINS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEEEERSoS4_RKT_RKNS_8IOFormatE]+0x60a): undefined reference to `std::__cxx11::basic_stringstream, std::allocator >::~basic_stringstream()' /usr/bin/ld: /tmp/cc5Lj0yk.o: in function `Eigen::JacobiRotation::makeGivens(double const&, double const&, double*, Eigen::internal::false_type)': foo.cc:(.text._ZN5Eigen14JacobiRotationIdE10makeGivensERKdS3_PdNS_8internal10false_typeE[_ZN5Eigen14JacobiRotationIdE10makeGivensERKdS3_PdNS_8internal10false_typeE]+0x194): undefined reference to `sqrt' /usr/bin/ld: foo.cc:(.text._ZN5Eigen14JacobiRotationIdE10makeGivensERKdS3_PdNS_8internal10false_typeE[_ZN5Eigen14JacobiRotationIdE10makeGivensERKdS3_PdNS_8internal10false_typeE]+0x265): undefined reference to `sqrt' /usr/bin/ld: /tmp/cc5Lj0yk.o: in function `void Eigen::MatrixBase, -1, 1, true>, -1, 1, false> >::makeHouseholder, -1, 1, true>, -1, 1, false>, -1> >(Eigen::VectorBlock, -1, 1, true>, -1, 1, false>, -1>&, double&, double&) const': foo.cc:(.text._ZNK5Eigen10MatrixBaseINS_5BlockINS1_INS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELin1ELi1ELb1EEELin1ELi1ELb0EEEE15makeHouseholderINS_11VectorBlockIS5_Lin1EEEEEvRT_RdSC_[_ZNK5Eigen10MatrixBaseINS_5BlockINS1_INS_6MatrixIdLin1ELin1ELi0ELin1ELin1EEELin1ELi1ELb1EEELin1ELi1ELb0EEEE15makeHouseholderINS_11VectorBlockIS5_Lin1EEEEEvRT_RdSC_]+0x188): undefined reference to `sqrt' /usr/bin/ld: /tmp/cc5Lj0yk.o: in function `double Eigen::internal::positive_real_hypot(double const&, double const&)': foo.cc:(.text._ZN5Eigen8internal19positive_real_hypotIdEET_RKS2_S4_[_ZN5Eigen8internal19positive_real_hypotIdEET_RKS2_S4_]+0x12e): undefined reference to `sqrt' /usr/bin/ld: /tmp/cc5Lj0yk.o:(.data.rel.local.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0' /usr/bin/ld: warning: creating DT_TEXTREL in a PIE collect2: error: ld returned 1 exit status