菜鸟提问,请高手指点!

sesgli 2010-01-11 10:02:08
请问这样的warning 表示什么意思
同样的文件在别的工程里面编译不会出现这样的warning

c:\program files\microsoft visual studio\vc98\include\vector(48) : warning C4786: '??0?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QAE@IABV
?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@ABV?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@1@@Z' : identifier was truncated to '255' characters in the browser information

f:\1588 r2\1588\mmi\2dchart\charttitle.h(55) : see reference to class template instantiation 'std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<ch
ar,struct std::char_traits<char>,class std::allocator<char> > > >' being compiled
...全文
76 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
lonelyhacker 2010-01-11
  • 打赏
  • 举报
回复
不要忽略这些警告,最好的办法就是把你的代码造成警告的地方全部修改过来。否则的话有可能会出现问题的。
lllyyy2403 2010-01-11
  • 打赏
  • 举报
回复
一般不管,等程序运行不了在说。
qc_jmy 2010-01-11
  • 打赏
  • 举报
回复
vector使用需要检查
xwsn007 2010-01-11
  • 打赏
  • 举报
回复
这是msdn上的说明:
Compiler Warning (level 1) C4786
'identifier' : identifier was truncated to 'number' characters in the debug information

The debugger cannot debug code with symbols longer than 255 characters. In the debugger, you cannot view, evaluate, update, or watch the truncated symbols.

一般是应为你的工程里用了其它的库,比如std,使得编译时代码里有些标识符过长,
没事的,我们几十万行的代码里经常在stdafx.h里加上:
#pragma warning(disable:4786),来屏蔽他
yxwsbobo 2010-01-11
  • 打赏
  • 举报
回复
warning 表示警告,可能代码存在潜在危险,不是大问题的话可以忽略
xwsn007 2010-01-11
  • 打赏
  • 举报
回复
没事,忽略他吧
#pragma warning(disable:4786)
voidsky 2010-01-11
  • 打赏
  • 举报
回复
完全可以忽略
hhwei1985 2010-01-11
  • 打赏
  • 举报
回复
up
sesgli 2010-01-11
  • 打赏
  • 举报
回复
这些warning要怎么修改代码才能去除,有人知道吗?

16,467

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

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