码迷,mamicode.com
首页 > 其他好文 > 详细

解决: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 02:14:14      阅读:591      评论:0      收藏:0      [点我收藏+]

标签:www.   blog   opera   ase   其他   4.0   src   错误   3.2   

技术分享图片

解决方法,用到了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>’ 错误

标签:www.   blog   opera   ase   其他   4.0   src   错误   3.2   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!