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

Finally I solved the problem using the @dornhege answer and improvising a little. As you may know, you can link libraries with target_link_libraries, but if you want to link a object you must convert first the source (.cc, .cpp, ...) in a library (compiling it) and latter link it with this command.

My problem was that I was trying to link directly a object as if was a library. But, there is any form to link directly a .o file without converting it firstly in a library?

Finally I solved the problem using the @dornhege answer and improvising a little. As you may know, you can link libraries with target_link_libraries, but if you want to link a object you must convert first the source (.cc, .cpp, ...) in a library (compiling it) (creating it with rosbuild_add_library) and latter link it with this command.

My problem was that I was trying to link directly a object as if was a library. But, there is any form to link directly a .o file without converting it firstly in a library?