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: 474 times
Last updated: Aug 22 '18
How can I check what middleware I am using in ros2?
SMACC or any other state machine for ROS2
ROS 2 Crystal : Can't get parameter list of string from YAML file
[ROS2] CMake Error When Building the Package
Rviz ViewController 'CurrentView' unavailable
How to debug ROS2 Code with an IDE?
ROS 2 SLAM not working, 'queue is full'
netifaces Library installation failed