I managed to find a solution myself. The error was caused by using a wrong order for target_link_libraries. So, instead of listing ${catkin_LIBRARIES} first, included_class has to come first (see below code snippet). ... target_link_libraries( node included_class${catkin_LIBRARIES}

I managed to find a solution myself. The error was caused by using a wrong order for target_link_libraries. So, instead of listing ${catkin_LIBRARIES} first, included_class has to come first (see below code snippet). ... target_link_libraries( node included_class${catkin_LIBRARIES}