需要理会在vc6中使用stl所产生的一大堆不知道什么的警告吗?

oxygens 2003-05-20 10:54:05
每次用stl都会产生一大堆警告,以点头绪都没有
那位高手讲讲如何处理呢?就象下面这个
: warning C4786: '__ehhandler$?_Min@?$_Tree@VCModuleAddr@@U?$pair@$$CBVCModuleAddr@@PAVCModuleContext@@@std@@U_Kfn@?$map@VCModuleAddr@@PAVCModuleContext@@VMoudleAddrCmp@@V?$allocator@P
AVCModuleContext@@@std@@@3@VMoudleAddrCmp@@V?$allocator@PAVCModuleContext@@@3@@std@@KAPAU_Node@12@PAU312@@Z' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(551) : warning C4786: '__unwindfunclet$?_Min@?$_Tree@VCModuleAddr@@U?$pair@$$CBVCModuleAddr@@PAVCModuleContext@@@std@@U_Kfn@?$map@VCModuleAddr@@PAVCModuleContext@@VMoudleAddrCmp@@V?$allocat
or@PAVCModuleContext@@@std@@@3@VMoudleAddrCmp@@V?$allocator@PAVCModuleContext@@@3@@std@@KAPAU_Node@12@PAU312@@Z$0' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(574) : warning C4786: '__ehhandler$?_Rrotate@?$_Tree@VCModuleAddr@@U?$pair@$$CBVCModuleAddr@@PAVCModuleContext@@@std@@U_Kfn@?$map@VCModuleAddr@@PAVCModuleContext@@VMoudleAddrCmp@@V?$allocat
or@PAVCModuleContext@@@std@@@3@VMoudleAddrCmp@@V?$allocator@PAVCModuleContext@@@3@@std@@IAEXPAU_Node@12@@Z' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(574) : warning C4786: '__unwindfunclet$?_Rrotate@?$_Tree@VCModuleAddr@@U?$pair@$$CBVCModuleAddr@@PAVCModuleContext@@@std@@U_Kfn@?$map@VCModuleAddr@@PAVCModuleContext@@VMoudleAddrCmp@@V?$all
ocator@PAVCModuleContext@@@std@@@3@VMoudleAddrCmp@@V?$allocator@PAVCModuleContext@@@3@@std@@IAEXPAU_Node@12@@Z$0' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(102) : warning C4786: '__ehhandler$?_Dec@const_iterator@?$_Tree@VCModuleAddr@@U?$pair@$$CBVCModuleAddr@@PAVCModuleContext@@@std@@U_Kfn@?$map@VCModuleAddr@@PAVCModuleContext@@VMoudleAddrCmp@
@V?$allocator@PAVCModuleContext@@@std@@@3@VMoudleAddrCmp@@V?$allocator@PAVCModuleContext@@@3@@std@@QAEXXZ' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(102) : warning C4786: '__unwindfunclet$?_Dec@const_iterator@?$_Tree@VCModuleAddr@@U?$pair@$$CBVCModuleAddr@@PAVCModuleContext@@@std@@U_Kfn@?$map@VCModuleAddr@@PAVCModuleContext@@VMoudleAddr
Cmp@@V?$allocator@PAVCModuleContext@@@std@@@3@VMoudleAddrCmp@@V?$allocator@PAVCModuleContext@@@3@@std@@QAEXXZ$0' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(112) : warning C4786: '__ehhandler$?_Inc@const_iterator@?$_Tree@VCModuleAddr@@U?$pair@$$CBVCModuleAddr@@PAVCModuleContext@@@std@@U_Kfn@?$map@VCModuleAddr@@PAVCModuleContext@@VMoudleAddrCmp@
@V?$allocator@PAVCModuleContext@@@std@@@3@VMoudleAddrCmp@@V?$allocator@PAVCModuleContext@@@3@@std@@QAEXXZ' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\xtree(112) : warning C4786: '__unwindfunclet$?_Inc@const_iterator@?$_Tree@VCModuleAddr@@U?$pair@$$CBVCModuleAddr@@PAVCModuleContext@@@std@@U_Kfn@?$map@VCModuleAddr@@PAVCModuleContext@@VMoudleAddr
Cmp@@V?$allocator@PAVCModuleContext@@@std@@@3@VMoudleAddrCmp@@V?$allocator@PAVCModuleContext@@@3@@std@@QAEXXZ$0' : identifier was truncated to '255' characters in the debug information
Linking...

PressureZone.exe - 0 error(s), 36 warning(s)
...全文
97 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
realdreamer 2003-05-20
  • 打赏
  • 举报
回复
昏, 你这是什么版的STL? 微软原版的在vc6下编译不会有警告的
a_stupid_boy 2003-05-20
  • 打赏
  • 举报
回复
不用怎么理会,
要是觉得很烦不想让它出现的话
可以加上这样一句 #prama warning (disable:4786)
niu_a 2003-05-20
  • 打赏
  • 举报
回复
vc6 中所认的 类型等名称最多255个字符,但是stl由于模板潜套的问题,搞的很长,将被截断
zhangx105504 2003-05-20
  • 打赏
  • 举报
回复
#pragma warning(disable: c4786)
zhangx105504 2003-05-20
  • 打赏
  • 举报
回复
#pragma warning(disable: 4507)
Cauty45 2003-05-20
  • 打赏
  • 举报
回复

在debug时,符号表中将截断255以后的字符。

运行时没有任何问题,只是debug 调试时长符号被截断而已
xiaoyunet 2003-05-20
  • 打赏
  • 举报
回复
不用理会在你的cpp文件头里加上#prama warning (disable:4786)告诉编译器不要报告这个警告。

24,860

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧