STL编译告警,求帮助
在VC6里,输入了一段很简单的代码
#include "stdafx.h"
#include "stdio.h"
#include <map>
using std::map;
map<int,int> counter;
void main()
{
}
但是编译却出了很多告警,大家帮我看看,是怎么回事?
--------------------Configuration: test pro - Win32 Debug--------------------
Compiling...
test pro.cpp
F:\test pro\test pro.cpp(11) : warning C4786: 'std::reverse_bidirectional_iterator<std::_Tree<int,std::pair<int const ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::iterator,std::pair<int cons
t ,int>,std::pair<int const ,int> &,std::pair<int const ,int> *,int>' : identifier was truncated to '255' characters in the debug information
F:\test pro\test pro.cpp(11) : warning C4786: 'std::reverse_bidirectional_iterator<std::_Tree<int,std::pair<int const ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::const_iterator,std::pair<in
t const ,int>,std::pair<int const ,int> const &,std::pair<int const ,int> const *,int>' : identifier was truncated to '255' characters in the debug information
F:\test pro\test pro.cpp(11) : warning C4786: 'std::pair<std::_Tree<int,std::pair<int const ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::iterator,std::_Tree<int,std::pair<int const ,int>,std
::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::iterator>' : identifier was truncated to '255' characters in the debug information
F:\test pro\test pro.cpp(11) : warning C4786: 'std::pair<std::_Tree<int,std::pair<int const ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::const_iterator,std::_Tree<int,std::pair<int const ,in
t>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::const_iterator>' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(182) : warning C4786: 'std::_Tree<int,std::pair<int const ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::~_Tree<int,std::pair<int co
nst ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(162) : warning C4786: 'std::_Tree<int,std::pair<int const ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::_Tree<int,std::pair<int con
st ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >' : identifier was truncated to '255' characters in the debug information
Linking...
test pro.exe - 0 error(s), 6 warning(s)
#include "stdafx.h"
#include "stdio.h"
#include <map>
using std::map;
map<int,int> counter;
void main()
{
}
但是编译却出了很多告警,大家帮我看看,是怎么回事?
--------------------Configuration: test pro - Win32 Debug--------------------
Compiling...
test pro.cpp
F:\test pro\test pro.cpp(11) : warning C4786: 'std::reverse_bidirectional_iterator<std::_Tree<int,std::pair<int const ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::iterator,std::pair<int cons
t ,int>,std::pair<int const ,int> &,std::pair<int const ,int> *,int>' : identifier was truncated to '255' characters in the debug information
F:\test pro\test pro.cpp(11) : warning C4786: 'std::reverse_bidirectional_iterator<std::_Tree<int,std::pair<int const ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::const_iterator,std::pair<in
t const ,int>,std::pair<int const ,int> const &,std::pair<int const ,int> const *,int>' : identifier was truncated to '255' characters in the debug information
F:\test pro\test pro.cpp(11) : warning C4786: 'std::pair<std::_Tree<int,std::pair<int const ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::iterator,std::_Tree<int,std::pair<int const ,int>,std
::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::iterator>' : identifier was truncated to '255' characters in the debug information
F:\test pro\test pro.cpp(11) : warning C4786: 'std::pair<std::_Tree<int,std::pair<int const ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::const_iterator,std::_Tree<int,std::pair<int const ,in
t>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::const_iterator>' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(182) : warning C4786: 'std::_Tree<int,std::pair<int const ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::~_Tree<int,std::pair<int co
nst ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(162) : warning C4786: 'std::_Tree<int,std::pair<int const ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::_Tree<int,std::pair<int con
st ,int>,std::map<int,int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >' : identifier was truncated to '255' characters in the debug information
Linking...
test pro.exe - 0 error(s), 6 warning(s)
...全文
相关推荐
C++ stl set 求集合的交集并集差集
C++ stl set 求集合的交集并集差集 编译环境为dev C++
蓝桥杯软件+帮助文档+真题+STL
它可能包括各种编程语言的编译器或解释器,以及调试工具,帮助选手们高效地进行代码编写和调试。其次,"帮助文档"是参赛者必备的学习资源,它可能涵盖了比赛规则、编程语言的使用指南、算法解析等内容。
C语言版STL
- `Makefile`:用于编译和链接libcstl的脚本,可能也包含配置信息以支持跨平台编译。
mfc,c++,stl的中文帮助
STL的核心思想是泛型编程,这意味着它能与任何类型的数据一起工作,提高了代码的可重用性和效率。STL通过模板实现,允许开发者在编译时进行优化,降低了运行时的开销。
STL 源码剖析pdf 高清版(非扫描)
**STL实现细节**:除了理论知识,书中还会深入到实际代码,分析STL在不同编译器下的具体实现,如STLPort、SGI STL等,这有助于读者理解STL在不同环境下的行为差异。8.


