robotsthatdream / cafer

cafer framework for the DREAM project
5 stars 1 forks source link

undefined reference to `ros::Duration::Duration(ros::Rate const&)' #12

Closed cmaestre closed 8 years ago

cmaestre commented 8 years ago

While compiling CAFEr with catkin_make I found the following error in the test file "component_test_node.cpp":

undefined reference to `ros::Duration::Duration(ros::Rate const&)'

cmaestre commented 8 years ago

I found a solution online:

https://github.com/ros/roscpp_core/issues/30

It's neccesary to add #include "ros/impl/duration.h" at the head of the file where the error is found.