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

Newer FCL versions require C++11 support enabled.

You'll have to do this in the CMakeLists.txt of your package.

Some larger projects (such as MoveIt fi) do this by adding the following somewhere at the top of CMakeLists.txt:

add_definitions(-std=c++11)

Note that this should also be part already of your CMakeLists.txt, but commented.

Newer FCL versions require C++11 support enabled.

You'll have to do this in the CMakeLists.txt of your package.

Some larger projects (such as MoveIt fi) do this by adding the following somewhere at the top of CMakeLists.txt:

add_definitions(-std=c++11)

Note that this should also be part already of your CMakeLists.txt, but commented.


Edit:

Now it was required to access it with ROS. For that, I added:

and just a quick note: none of this is ROS-specific. I keep repeating that in every question that deals with this kind of topic, but this is all basic CMake. The fact that you're creating a ROS package, and that you use catkin_make to build it does not change that.

You would have to do the exact same thing if you weren't using ROS.

#error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

Newer FCL versions require C++11 support enabled.enabled. That is also what the error states.

You'll have to do this in the CMakeLists.txt of your package.

Some larger projects (such as MoveIt fi) do this by adding the following somewhere at the top of CMakeLists.txt:

add_definitions(-std=c++11)

Note that this should also be part already of your CMakeLists.txt, but commented.


Edit:

Now it was required to access it with ROS. For that, I added:

and just a quick note: none of this is ROS-specific. I keep repeating that in every question that deals with this kind of topic, but this is all basic CMake. The fact that you're creating a ROS package, and that you use catkin_make to build it does not change that.

You would have to do the exact same thing if you weren't using ROS.