ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 2012-12-05 04:46:31 -0500

joq gravatar image

That is a linker error. You compiled stage_main without a copy of listener.cpp.

Try this in your CMakeLists.txt:

rosbuild_add_executable(stage_main src/stage_main.cpp src/listener.cpp)

A better solution would involve creating a listener shared library which stage_main could reference.