编译baxter_simulator出现-std=c++11 or -std=gnu++11 compiler options.错误

在ubuntu16 安装ROS kinetic 编译 baxter_simulator 时出现如下错误

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.

只需修改~/baxter_ws/src中的CMakeLists.txt文件就好

 sudo gedit CMakeLists.txt 

添加

SET(CMAKE_CXX_FLAGS "-std=c++11")

即可

发布了125 篇原创文章 · 获赞 63 · 访问量 22万+

猜你喜欢

转载自blog.csdn.net/u011573853/article/details/103072828