ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

gazebo ros plugin make error: This file requires compiler and library support for the ISO C++ 2011 standard

asked 2017-04-08 18:38:24 -0500

Hi,

I'm trying to follow the following tutorial to use gazebo plugins in ROS:

http://gazebosim.org/tutorials?tut=ro...

but when I try to compile, I'm getting the following error:

gazebo_tutorials/src/simple_world_plugin.cpp:1:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #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.
 #error This file requires compiler and library support \

and then a bunch of errors... I searched on the internet and I found the following related problem:

https://github.com/turtlebot/turtlebo...

By the way, I'm using Gazebo 7 with Kinetic.

Best,

edit retag flag offensive close merge delete

Comments

This seems like a problem with your compiler. Which compiler are you using, does it support C++11, and do you have C++11 support turned on?

ahendrix gravatar image ahendrix  ( 2017-04-09 00:19:18 -0500 )edit

I don't have C++11 support turned on. How I can turn on C++11 support on? I thought ROS is not compatible with C++11. I'm using the default compiler for catkin or how I can check which compiler I'm using?

andrestoga gravatar image andrestoga  ( 2017-04-09 11:33:45 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-04-09 14:59:55 -0500

ahendrix gravatar image

According to REP-003 ROS Kinetic and newer require C++11 support. catkin uses the system's default compiler, so you should make sure that your default compiler supports C++11.

edit flag offensive delete link more
0

answered 2017-11-22 03:13:13 -0500

hywel1994 gravatar image

I get the answer in this Q&A. https://answers.ros.org/question/2168...

You can try.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-04-08 18:38:24 -0500

Seen: 2,179 times

Last updated: Nov 22 '17