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 -0600
Seen: 544 times
Last updated: Aug 22 '18
The Good (C++11/14), the Bad (CMAKE_CXX_FLAGS) and the Ugly (cmake)
c++11 library for indigo catkin package
ROS fuerte and PCL visualizer [closed]
ROS fuerte rosmake -std=c++11 compile error
Is there a release date of ros 2 or more informations about it?
Is the planned ROS1 to ROS2/DDS bridge available yet?