Undefined reference to Constructor and Destructor

Issue #57 closed
Nathan Boyd created an issue

Hello,

I'm currently using Trac_ik for a robot leg using ROS. To my understanding, I am declaring the CMAKELIST correctly. I followed the examples provided to properly setup Trac_ik in my class. However, for some reason I get the following errors while making the workspace:

undefined reference to `TRAC_IK::TRAC_IK::~TRAC_IK()'

undefined reference to `TRAC_IK::TRAC_IK::TRAC_IK(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double, double, TRAC_IK::SolveType)'

I believe it might be a cmakelist linker issue, but I am not entirely sure... Honestly this error came a little out of nowhere. My cmakelist is attached:

Comments (3)

  1. Patrick Beeson Account Deactivated

    Are you using debs? Or compiling against source?

    The public version of TRAC-IK has not changed in months so this likely is something on your machine. If you are using debs, I’d suggest an apt reinstall

  2. Patrick Beeson Account Deactivated

    I will close this if I don't get any followup, as no one can reproduce this issue.

  3. Log in to comment