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

Thanks for your answer. I got how to compile the single .cpp file without even having man.

you have to add two lines

rosbuild_add_library(gazebo_ros_xx src/gazebo_ros_xx.cpp) rosbuild_link_boost(gazebo_ros_xx thread)

and then just type the command 'make'.

Hope this will be beneficial to others as well

Thanks for your answer. I got how to compile the single .cpp file without even having man. on main function.

you have to add two lines

rosbuild_add_library(gazebo_ros_xx src/gazebo_ros_xx.cpp) rosbuild_link_boost(gazebo_ros_xx thread)

and then just type the command 'make'.

Hope this will be beneficial to others as well

Thanks for your answer. I got how to compile the single .cpp file without even having on main function.

you have to add two lineslines to CMakeLists.txt

rosbuild_add_library(gazebo_ros_xx src/gazebo_ros_xx.cpp) src/gazebo_ros_xx.cpp),

rosbuild_link_boost(gazebo_ros_xx thread)

and then just type the command 'make'.

Hope this will be beneficial to others as well

Thanks for your answer. I got how to compile the single .cpp file without even having on no main function.

you have to add two lines to CMakeLists.txt

rosbuild_add_library(gazebo_ros_xx src/gazebo_ros_xx.cpp),

rosbuild_link_boost(gazebo_ros_xx thread)

and then just type the command 'make'.

Hope this will be beneficial to others as well