码迷,mamicode.com
首页 > 其他好文 > 详细

关于identifier was truncated to '255' characters

时间:2015-04-11 22:33:29      阅读:161      评论:0      收藏:0      [点我收藏+]

标签:

 

学习c++过程中,遇到在VC中使用set时DEBUG模式出现的警告

identifier was truncated to ‘255‘ characters in the debug information

网上找了下,发现如下解决办法

 

 

转自:http://hi.baidu.com/ncutlw/blog/item/a8a356165f57ae4d20a4e9b1.html

前段时间使用VC6中STRING,VECTOR时DEBUG模式出现的警告,

大概判断应该是调试时一些类调用后导致名字过长,超过了255个字符,产生,

今天网上找了下,问题是因为VC6对STL的一些不完全支持造成,手工屏蔽就可以。

方法为在源文件头部加入一下预编译代码

#ifdef WIN32
#pragma warning (disable: 4514 4786)
#endif

问题解决。

关于identifier was truncated to '255' characters

标签:

原文地址:http://www.cnblogs.com/fengting/p/4418575.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!