"undefined reference" to libxyz.so via catkin build

Dear support,
Error:
/usr/bin/ld: /home/user/catkin_ws/devel/.private/rpg_mpc/lib/libmpc_controller.so: undefined reference to `quadrotor_common::ControlCommand::zero()’

  1. I do have the libquadrotor_common.so
    1a) there is a link to the “missing” so in /home/user/catkin_ws/devel/lib
  2. I have tried adding the path to LD_LIBRARY_PATH

what am i missing??
Please advise

Thanks
-R

1 Like

link_directories(/home/user/catkin_ws/devel/lib)

2 Likes

Hi @kalkimann ,

Thanks for sharing the solution, we appreciate.

Best regards