Cant compile

asked 2018-02-22 11:06:11 -0600

atom12 gravatar image

updated 2018-02-22 12:14:32 -0600

jayess gravatar image

What is wrong with fromMsg?

CMakeFiles/repeat.dir/src/repeat.cpp.o: In function `main':
repeat.cpp:(.text+0x461): undefined reference to `void tf2::fromMsg<geometry_msgs::TransformStamped_<std::allocator<void> >, tf2::Transform>(geometry_msgs::TransformStamped_<std::allocator<void> > const&, tf2::Transform&)'
repeat.cpp:(.text+0x489): undefined reference to `void tf2::fromMsg<geometry_msgs::TransformStamped_<std::allocator<void> >, tf2::Transform>(geometry_msgs::TransformStamped_<std::allocator<void> > const&, tf2::Transform&)'
collect2: error: ld returned 1 exit status
labpkg/CMakeFiles/repeat.dir/build.make:120: recipe for target '/home/adam/CSE180robotics/devel/lib/labpkg/repeat' failed
make[2]: *** [/home/adam/CSE180robotics/devel/lib/labpkg/repeat] Error 1
CMakeFiles/Makefile2:1607: recipe for target 'labpkg/CMakeFiles/repeat.dir/all' failed
make[1]: *** [labpkg/CMakeFiles/repeat.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed
edit retag flag offensive close merge delete

Comments

Please change the title of your question. As it is it does not follow the support guidelines as it does not give any indication of what your real issue is.

gvdhoorn gravatar image gvdhoorn  ( 2018-02-23 03:17:50 -0600 )edit