在VC6.0中使用stl在Debug模式下编译导致的warning
2014-07-01 20:28
375 查看
前段时间使用VC6中STRING,VECTOR时DEBUG模式出现的警告,
这些warning的结尾部分是:identifier was truncated to '255' characters in the debug information
大概判断应该是调试时一些类调用后导致名字过长,超过了255个字符,产生,
今天网上找了下,问题是因为VC6对STL的一些不完全支持造成,手工屏蔽就可以。
方法为在包含stl相关头文件之前加入一下预编译代码
#ifdef WIN32
#pragma warning (disable: 4514 4786)
#endif
问题解决
这些warning的结尾部分是:identifier was truncated to '255' characters in the debug information
大概判断应该是调试时一些类调用后导致名字过长,超过了255个字符,产生,
今天网上找了下,问题是因为VC6对STL的一些不完全支持造成,手工屏蔽就可以。
方法为在包含stl相关头文件之前加入一下预编译代码
#ifdef WIN32
#pragma warning (disable: 4514 4786)
#endif
问题解决
相关文章推荐
- Visual Studio中Debug与Release编译模式的区别以及Preprocesor directives的使用
- 不要在DEBUG模式下使用STL实现"复杂的"算法
- 消除由于使用gcc编译选项-Wunused-parameter而导致的 warning: "unused parameter xxxx"警告
- 使用CodeWarrior编译时出现Warning:C12056 SP debug info incorrect because of optimization or inline assembler
- 使用JAVA远程调用导致程序自动down掉,jdk1.5的debug模式系统漏洞
- 不要在DEBUG模式下使用STL实现"复杂的"算法
- 使用CodeWarrior编译时出现Warning:C12056 SP debug info incorrect because of optimization or inline assembler
- VC6.0中如何把Debug编译模式修改为Release模式?
- 编译模式不对,导致无法进入Debug
- VC6.0下编译STLport5.1.3和Boost 库
- 【转】VC6.0+icc编译STLPort5.2
- [转]VC6.0中编译和使用OpenSSL的过程
- Tomcat在debug模式下启动,使用eclipse监听
- 仅在 Debug 模式下编译的 NSLog
- 使用ZwSystemDebugControl的简易用户模式Rootkit检测器代码
- VC6.0编译报错:"error C2220: warning treated as error - no 'object' file generated"
- 在vc6.0中使用STL '__stl_new' : undeclared identifier解决方法
- VC6.0+icc编译STLPort5.2
- 使用ffmpeg sdk v3.2和vc6.0编译output_example.c
- VC6.0 Debug模式下创建Excel COM对象可能有移植性问题