Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You're not linking against roscpp, which is the library that provides those symbols.

How to solve this error?

Link against roscpp. Add it to the find_package(catkin COMPONENTS ..) statement, and add it to your catkin_package(.. CATKIN_DEPENDS ..) list.

I'd also make your CMakeLists.txt search for your kinematics package, as you use that in your service server definitions.

You're not linking against roscpp, which is the library that provides those symbols.

How to solve this error?

Link against roscpp. Add it to the find_package(catkin COMPONENTS ..) statement, and add it to your catkin_package(.. CATKIN_DEPENDS ..) list.

I'd also make your CMakeLists.txt search for your kinematics package, as you use that in your service server definitions.


Edit: this is also discussed in the Writing a Simple Publisher and Subscriber (C++) - Building your nodes tutorial, and see the catkin documentation » How to do common tasks » Package format 2 (recommended) » C++ catkin library dependencies for how to update your CMakeLists.txt and package manifest.

You're not linking against roscpp, which is the library that provides those symbols.

How to solve this error?

Link against roscpp. Add it to the find_package(catkin COMPONENTS ..) statement, and add it to your catkin_package(.. CATKIN_DEPENDS ..) list.

I'd also make your CMakeLists.txt search for your kinematics package, as you use that in your service server definitions.


Edit: this is also discussed in the Writing a Simple Publisher and Subscriber (C++) - Building your nodes tutorial, and see the catkin documentation » How to do common tasks » Package format 2 (recommended) » C++ catkin library dependencies for how to update your CMakeLists.txt and package manifest.

You're not linking against roscpp, which is the library that provides those symbols.

How to solve this error?

Link against roscpp. Add it to the find_package(catkin COMPONENTS ..) statement, and add it to your catkin_package(.. CATKIN_DEPENDS ..) list.

I'd also make your CMakeLists.txt search for your kinematics package, as you use that in your service server definitions.


Edit: this is also discussed in the Writing a Simple Publisher and Subscriber (C++) - Building your nodes tutorial, and see the catkin documentation » How to do common tasks » Package format 2 (recommended) » C++ catkin library dependencies for how to update your CMakeLists.txt and package manifest.

Note also that this is not a ROS specific problem, but a standard C++ linking error, and that it has been asked many times before.