C++调用标准库窗口时编译警告信息太多的处理办法,warning C4786

 当使用标准C++中的容器类等类时,会产生大量的警告信息 warning C4786 ,一个示例如文后引用所示。
其解决办法可在stdafx.h文件中加上:#pragma   warning(disable:4786)  来解决。
 
c:\program files\microsoft visual studio\vc98\include\xtree(201) : warning C4786: '?rbegin@?$_Tree@HHU_Kfn@?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@U?$less@H@3@V?$allocator@H@3@@std@@QAE?AV?$reverse_bidirectional_iterator@Viterator@?$_Tree@HHU_K
fn@?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@U?$less@H@3@V?$allocator@H@3@@std@@HAAHPAHH@2@XZ' : identifier was truncated to '255' characters in the browser information
c:\program files\microsoft visual studio\vc98\include\set(33) : see reference to class template instantiation 'std::_Tree<int,int,struct std::set<int,struct std::less<int>,class std::allocator<int> >::_Kfn,struct std::less<int>,class std::al
locator<int> >' being compiled
c:\channel\chanexpert\interface\dlgruleadd.h(25) : see reference to class template instantiation 'std::set<int,struct std::less<int>,class std::allocator<int> >' being compiled
c:\program files\microsoft visual studio\vc98\include\xtree(203) : warning C4786: '?rbegin@?$_Tree@HHU_Kfn@?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@U?$less@H@3@V?$allocator@H@3@@std@@QBE?AV?$reverse_bidirectional_iterator@Vconst_iterator@?$_Tree
@HHU_Kfn@?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@U?$less@H@3@V?$allocator@H@3@@std@@HABHPBHH@2@XZ' : identifier was truncated to '255' characters in the browser information
c:\program files\microsoft visual studio\vc98\include\set(33) : see reference to class template instantiation 'std::_Tree<int,int,struct std::set<int,struct std::less<int>,class std::allocator<int> >::_Kfn,struct std::less<int>,class std::al
locator<int> >' being compiled
c:\channel\chanexpert\interface\dlgruleadd.h(25) : see reference to class template instantiation 'std::set<int,struct std::less<int>,class std::allocator<int> >' being compiled
c:\program files\microsoft visual studio\vc98\include\xtree(205) : warning C4786: '?rend@?$_Tree@HHU_Kfn@?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@U?$less@H@3@V?$allocator@H@3@@std@@QAE?AV?$reverse_bidirectional_iterator@Viterator@?$_Tree@HHU_Kfn
@?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@U?$less@H@3@V?$allocator@H@3@@std@@HAAHPAHH@2@XZ' : identifier was truncated to '255' characters in the browser information
c:\program files\microsoft visual studio\vc98\include\set(33) : see reference to class template instantiation 'std::_Tree<int,int,struct std::set<int,struct std::less<int>,class std::allocator<int> >::_Kfn,struct std::less<int>,class std::al
locator<int> >' being compiled
c:\channel\chanexpert\interface\dlgruleadd.h(25) : see reference to class template instantiation 'std::set<int,struct std::less<int>,class std::allocator<int> >' being compiled
c:\program files\microsoft visual studio\vc98\include\xtree(207) : warning C4786: '?rend@?$_Tree@HHU_Kfn@?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@U?$less@H@3@V?$allocator@H@3@@std@@QBE?AV?$reverse_bidirectional_iterator@Vconst_iterator@?$_Tree@H
HU_Kfn@?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@U?$less@H@3@V?$allocator@H@3@@std@@HABHPBHH@2@XZ' : identifier was truncated to '255' characters in the browser information
c:\program files\microsoft visual studio\vc98\include\set(33) : see reference to class template instantiation 'std::_Tree<int,int,struct std::set<int,struct std::less<int>,class std::allocator<int> >::_Kfn,struct std::less<int>,class std::al
locator<int> >' being compiled
c:\channel\chanexpert\interface\dlgruleadd.h(25) : see reference to class template instantiation 'std::set<int,struct std::less<int>,class std::allocator<int> >' being compiled
C:\channel\ChanExpert\interface\dlgrulemanage.cpp(72) : warning C4786: 'std::pair<std::_Tree<int,int,std::set<int,std::less<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::const_iterator,std::_Tree<int,int,std::set<int,std::le
ss<int>,std::allocator<int> >::_Kfn,std::less<int>,std::allocator<int> >::const_iterator>' : identifier was truncated to '255' characters in the debug information

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值