首页 > 其他 > 详细

解决:function in namespace ‘std’ does not name a type + allocator_/nullptr/dellocator_ was not declared + base operand of ‘->’ has non-pointer type ‘std::vector<cv::Mat>’ 错误

时间:2018-09-02 00:59:37      阅读:337      评论:0      收藏:0      [点我收藏+]

技术分享图片

解决方法,用到了c++11,g++命令需要加上-std=c++11选项

 

附:g++默认的c++标准

gcc-6.4.0 gcc-7.2.0 默认是 -std=gnu++14
gcc-4.3.6 gcc-4.4.7 gcc-4.5.4 gcc-4.6.4 gcc-4.7.4 gcc-4.8.5 gcc-4.9.4 gcc-5.4.0 默认是 -std=gnu++98
gcc-3.0.4 gcc-3.1.1 gcc-3.2.3 gcc-3.3.6 gcc-3.4.6 gcc-4.0.4 gcc-4.1.2 gcc-4.2.4 默认是 -std=gnu89 

 

 其他可能错误原因:

https://www.cnblogs.com/wjgrt/p/8059074.html

解决:function in namespace ‘std’ does not name a type + allocator_/nullptr/dellocator_ was not declared + base operand of ‘->’ has non-pointer type ‘std::vector<cv::Mat>’ 错误

原文:https://www.cnblogs.com/zealousness/p/9572033.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!