vc6.0中 identifier was truncated to '255' characters in the debug information警告的解决

来源:互联网 发布:linux 获取命令返回值 编辑:程序博客网 时间:2024/06/03 23:01

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

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

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

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

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

问题解决。

原创粉丝点击