build ros2 with c++11
I have a project written in c++11.
I would like to integrate a ros2 node in it.
Is there a way to build ros2 code with the c++11 flag instead of the c++14 one ?
Thank you
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
I have a project written in c++11.
I would like to integrate a ros2 node in it.
Is there a way to build ros2 code with the c++11 flag instead of the c++14 one ?
Thank you
No, ROS 2 relies on C++14 features, so it must be built with a compiler that supports C++14 and has it enabled (e.g. with --std=c++14
or --std=gnu++14
).
If you project builds with C++11 but your compiler supports C++14, then you can likely just build your C++11 based project with C++14 turned on and be fine.
Asked: 2018-08-22 20:38:47 -0500
Seen: 478 times
Last updated: Aug 22 '18
How to get argument values in ROS2?
[Nav2] Why use Voxel layer over 2D layer for RGBD sensor?
ROS2 xacro parsing: ${robot_ip} vs $(arg robot_ip)
[ros2run]: Process exited with failure 1
ROS2 launch FindPackageShare vs get_package_share_directory
[ROS2] I can publish a parameter with wrong type and get no exception
Recommendations for ROS 2 Humble and Gazebo demo for robot arm?