std::map error: implicit instantiation of undefined template 不能识别std::map迭代器指针
来源:互联网 发布:js和php文件怎么运行 编辑:程序博客网 时间:2024/06/06 06:13
std::map error: implicit instantiation of undefined template 不能识别std::map迭代器指针
代码如下:
std::map<std::string, int>::iterator map_iter;map_iter->first
QT中报错:
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility:258: error: implicit instantiation of undefined template 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >'_T1 first; ^
发现是引入头文件错误。
我原本头文件引入如下:
#include <stdio.h>#include <string.h>#include <map>
应该 #include <string>
,而不是 #include <string.h>
,修改为如下:
#include <iostream>#include <string>#include <map>
阅读全文
0 0
- std::map error: implicit instantiation of undefined template 不能识别std::map迭代器指针
- implicit instantiation of undefined template 'std::basic_stringstream<char,std::char_trats<char>,std
- Error C2784 with std map
- std::map&&std::set
- std::map & std::hash_map
- std::map
- std::map
- std::map
- std::map
- std::map
- std::map
- std::map
- std::map
- std::map
- std::map
- std::map
- std::map
- std::map::map
- 定时器解决IE9中propertychange和input事件在拖拽、剪切、删除时无法触发
- Tomcat 7.0在Eclipse下安装与部署(下)
- SJXXX串口扩展芯片 UART(1) to UART(4)
- new/delete和malloc/free的区别
- abap对采购订单强制置为”交货已完成“状态(BAPI_PO_CHANGE、BAPI_PO_RELEASE、BAPI_PO_RESET_RELEASE)
- std::map error: implicit instantiation of undefined template 不能识别std::map迭代器指针
- Spring MVC实际项目中的应用
- MY97 DatePicker
- LiveData的学习
- C++总结7——STL基本原理和用法
- Integration Services包部署常见问题汇总 2
- git 两种情况的
- java数据类型
- 形式参数的问题