Gazebo | Ignition | Community
Ask Your Question

Can't Compile basic Hello World Plugin

asked 2018-09-06 22:34:09 -0500

BlackViper gravatar image

Hi I'm in the plug in tutorial (hello world) and when I try to compile I have the following error message.

In file included from /usr/include/c++/5/random:35:0,
                 from /usr/include/ignition/math2/ignition/math/Rand.hh:20,
                 from /usr/include/ignition/math2/ignition/math.hh:18,
                 from /usr/include/sdformat-4.0/sdf/Param.hh:34,
                 from /usr/include/sdformat-4.0/sdf/Element.hh:24,
                 from /usr/include/sdformat-4.0/sdf/sdf.hh:5,
                 from /usr/include/gazebo-7/gazebo/common/Plugin.hh:42,
                 from /home/blackviper/catkin_ws/src/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 a lot more erros follow after that. Is this a sort of compatibility issue? I'm just starting out gazebo ros plugins. I'm using gazebo 7 btw.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-09-07 03:37:44 -0500

Raskkii gravatar image

Yes, this is a compatibility issue with c++ 11.

To fix that, just add the following line to your CMakeLists.txt:



edit flag offensive delete link more


Thank you!

BlackViper gravatar imageBlackViper ( 2018-09-13 20:37:23 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-09-06 22:34:09 -0500

Seen: 356 times

Last updated: Sep 07 '18