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: 471 times
Last updated: Aug 22 '18
ROS2 one action client calling multiple servers
how to organize data transfer between nodes on multiple PCs on ROS2
[ROS2-foxy] where to place source and header files and how to link them?
Waiting for TransformListener with ROS2 and Python?
Using Occupancy Grids with ROS 2: frame problem and probability map
[ROS2] How to set QoS policy for topic in cpp script
Dockerfile: Malformed entry 1 in list file /etc/apt/sources.list.d/ros2.list
I am getting an error using Ros2 Iron and micro-ROS on RP2040