error: ‘to_string’ is not a member of ‘std’
程序员文章站
2022-07-13 22:19:04
...
在ROS里面用catkin_make编译的时候报错
error: ‘to_string’ is not a member of ‘std’
解决方法:
在CMakeList.txt里面加上这句话
add_compile_options(-std=c++11)
原因是to_string是c++11标准才可以使用的,同样QT也需要添加类似的语句,因为低版本的编译器不支持c++11.
推荐阅读
-
jQuery的$.get()函数不执行以及php端报错Uncaught Error: Call to a member function bind_param() on boolean in...
-
error: ‘ceil‘ is not a member of ‘std‘ | error: ‘floor‘ is not a member of ‘std‘
-
error: ‘PassThrough’ is not a member of ‘pcl’
-
error: ‘accumulate’ is not a member of ‘std’
-
error: 'to_string' is not a member of 'std'
-
error: ‘to_string’ is not a member of ‘std’
-
error: ‘to_string’ is not a member of ‘std’
-
【Spark】error: value foreach is not a member of Object
-
error: object MultivariateNormalDistribution is not a member of package
-
编译报错: error: ‘undistortPoints’ is not a member of ‘cv’