Ask Your Question

Revision history [back]

All I did to have cmake compile this was add this.

target_link_libraries(ros_plc_modbus ${catkin_LIBRARIES} modbus )

and added

include <modbus modbus.h="">

to the cpp file

All I did to have cmake compile this was add this.

target_link_libraries(ros_plc_modbus
   ${catkin_LIBRARIES}
   modbus
 )

)

and added

include <modbus modbus.h="">

#include <modbus/modbus.h>

to the cpp file

All I did to have cmake compile was add this.this to the cmake.

target_link_libraries(ros_plc_modbus
   ${catkin_LIBRARIES}
   modbus
 )

and added this to the cpp file

#include <modbus/modbus.h>

to the cpp file