Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Error #39

Open
Yamin05114 opened this issue Jun 9, 2017 · 0 comments
Open

Compile Error #39

Yamin05114 opened this issue Jun 9, 2017 · 0 comments

Comments

@Yamin05114
Copy link

Yamin05114 commented Jun 9, 2017

Hi, I have one problem during compiling, thanks in advance:

[100%] Linking CXX executable okvis_app_synchronous lib/libceres.a(loss_function.cc.o): In function std::__cxx11::basic_string<char, std::char_traits, std::allocator >* google::MakeCheckOpString<double, double>(double const&, double const&, char const*)':
loss_function.cc:(.text._ZN6google17MakeCheckOpStringIddEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIddEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc]+0x54): undefined reference to google::base::CheckOpMessageBuilder::NewString[abi:cxx11]()' lib/libceres.a(problem_impl.cc.o): In function std::__cxx11::basic_string<char, std::char_traits, std::allocator >* google::MakeCheckOpString<int, int>(int const&, int const&, char const*)':
problem_impl.cc:(.text._ZN6google17MakeCheckOpStringIiiEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIiiEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc]+0x50): undefined reference to google::base::CheckOpMessageBuilder::NewString[abi:cxx11]()' lib/libceres.a(problem_impl.cc.o): In function std::__cxx11::basic_string<char, std::char_traits, std::allocator >* google::MakeCheckOpString<unsigned long, unsigned long>(unsigned long const&, unsigned long const&, char const*)':
problem_impl.cc:(.text._ZN6google17MakeCheckOpStringImmEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc[_ZN6google17MakeCheckOpStringImmEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc]+0x51): undefined reference to google::base::CheckOpMessageBuilder::NewString[abi:cxx11]()' lib/libceres.a(problem_impl.cc.o): In function std::__cxx11::basic_string<char, std::char_traits, std::allocator >* google::MakeCheckOpString<ceres::internal::ParameterBlock*, ceres::internal::ParameterBlock*>(ceres::internal::ParameterBlock* const&, ceres::internal::ParameterBlock* const&, char const*)':
problem_impl.cc:(.text._ZN6google17MakeCheckOpStringIPN5ceres8internal14ParameterBlockES4_EEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIPN5ceres8internal14ParameterBlockES4_EEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc]+0x51): undefined reference to google::base::CheckOpMessageBuilder::NewString[abi:cxx11]()' lib/libceres.a(solver_impl.cc.o): In function std::__cxx11::basic_string<char, std::char_traits, std::allocator >* google::MakeCheckOpString<int, unsigned long>(int const&, unsigned long const&, char const*)':
solver_impl.cc:(.text._ZN6google17MakeCheckOpStringIimEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIimEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc]+0x51): undefined reference to google::base::CheckOpMessageBuilder::NewString[abi:cxx11]()' lib/libceres.a(solver_impl.cc.o):solver_impl.cc:(.text._ZN6google17MakeCheckOpStringImiEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc[_ZN6google17MakeCheckOpStringImiEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc]+0x50): more undefined references to google::base::CheckOpMessageBuilder::NewStringabi:cxx11' follow
collect2: error: ld returned 1 exit status
CMakeFiles/okvis_app_synchronous.dir/build.make:142: recipe for target 'okvis_app_synchronous' failed
make[2]: *** [okvis_app_synchronous] Error 1
CMakeFiles/Makefile2:116: recipe for target 'CMakeFiles/okvis_app_synchronous.dir/all' failed
make[1]: *** [CMakeFiles/okvis_app_synchronous.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2`

I am new to SLAM and not very sure what is the problem.
The following is my gcc
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant