ROS下编译报错
程序员文章站
2022-07-14 22:19:30
...
创建answer功能包,里面有一个answer节点,编译报错
使用catkin_make命令进行编译,报错
解决方案:在answer功能包下的CMakeList.txt文件中添加
SET( CMAKE_CXX_FLAGS "-std=c++11 -O3")
则编译通过
参考:error This file requires compiler and library support for the ISO C++ 2011 standard.
error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
当使用CMAKE编译工程时,出现这个错误,解决办法:
在工程主目录的CMakeLists.txt中添加如下,可以编译成功:
SET( CMAKE_CXX_FLAGS "-std=c++11 -O3")
推荐阅读
-
Linux下memcache编译安装与基本使用教程
-
解决linux下set_loginuid failed opening loginuid报错问题
-
写自己的ROS节点使用(import)anaconda虚拟环境的包(在虚拟环境下运行)
-
linux下oracle报错,提示ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务的解决办法
-
win7下docker安装与报错问题的解决方法
-
windows10下使用IE浏览器出现报错的解决办法
-
解析libcurl在android下的移植、编译与测试
-
Eclipse下jQuery文件报错出现错误提示红叉
-
linux下xhost命令报错:unable to open display的解决办法
-
Linux下VIM编译器的使用以及shell编程基础