VC++调试常见错误总结
2016-06-27 13:45
639 查看
1、errorC2859 vc90.idb is not the idb file that was used when this precompiled headerwas created。
解决方法:选中工程-->点击右键属性-->ConfigurationProperties-->C/C++-->Output
Files-->Program Database File Name中的$(IntDir)/vc90.pdb改为$(IntDir)/(工程名).pdb即可。
2、Failedto return new code element.
解决方法:关闭工程,删除工程中的.ncb文件,再重新打开工程即可。
3、makesure that the file is not open by another process and is not write-protected
解决方法:关闭工程,再重新打开即可。
网上有的说:Tools-->Options-->Projectsand Solutions-->Builde and Run-->将maximum
number of parallelproject builds该为1即可,可是试试了并不起作用。
4、add/removeoperation is impossible,because the code element 'Cxxx' is read only
解决方法:关闭工程,删除工程中的.ncb和.suo两个文件,再重新打开工程即可。
5、errorC2471 cannot update program database …..debug\vc90.pdb
解决方法:在属性配置里(1)、C\C++-->General-->Debug
Information format:改为C7 Compatible (/Z7);(2)、C\C++-->Code
Generation-->Enable String Pooling:改为Yes (/GF);(3)、Linker-->Debuging-->GeneralDebug
Info:改为Yes(/DEBUG)即可。
6、Errorspawning 'cmd.exe'
解决方法:Tools-->Options-->Projectsand Solutions-->VC++ Directories:点击New
Line(类似文件夹图标)添加一行(cmd.exe所在目录):C:\WINDOWS\system32\,OK即可。
7、断点调试时,出现thereis no source code available for the current location
解决方法:Tools-->Options-->Debugging-->General-->把Requiresource
files to exactly match the original version前面的勾去掉即可。
解决方法:选中工程-->点击右键属性-->ConfigurationProperties-->C/C++-->Output
Files-->Program Database File Name中的$(IntDir)/vc90.pdb改为$(IntDir)/(工程名).pdb即可。
2、Failedto return new code element.
解决方法:关闭工程,删除工程中的.ncb文件,再重新打开工程即可。
3、makesure that the file is not open by another process and is not write-protected
解决方法:关闭工程,再重新打开即可。
网上有的说:Tools-->Options-->Projectsand Solutions-->Builde and Run-->将maximum
number of parallelproject builds该为1即可,可是试试了并不起作用。
4、add/removeoperation is impossible,because the code element 'Cxxx' is read only
解决方法:关闭工程,删除工程中的.ncb和.suo两个文件,再重新打开工程即可。
5、errorC2471 cannot update program database …..debug\vc90.pdb
解决方法:在属性配置里(1)、C\C++-->General-->Debug
Information format:改为C7 Compatible (/Z7);(2)、C\C++-->Code
Generation-->Enable String Pooling:改为Yes (/GF);(3)、Linker-->Debuging-->GeneralDebug
Info:改为Yes(/DEBUG)即可。
6、Errorspawning 'cmd.exe'
解决方法:Tools-->Options-->Projectsand Solutions-->VC++ Directories:点击New
Line(类似文件夹图标)添加一行(cmd.exe所在目录):C:\WINDOWS\system32\,OK即可。
7、断点调试时,出现thereis no source code available for the current location
解决方法:Tools-->Options-->Debugging-->General-->把Requiresource
files to exactly match the original version前面的勾去掉即可。
相关文章推荐
- C语言数组与指针详解
- 基数排序(桶排序)
- C++ 学习 笔记(菜鸟级,自我备忘)
- C++静态多态(模版模拟多态)的讨论
- java调用C++ DLL库方法
- c语言time_t和struct tm
- 继承 了解思想 C++
- C++中protected的访问权限
- 常见算法:C语言求最小公倍数和最大公约数三种算法
- C Primer Plus 中文版 前言
- 《Effective C++》读后感
- C++使用sqlite的方法
- C++入门(1):程序、编译器和操作系统
- C/C++类实现值传递
- C++ 运算符重载二(一元运算符重载)
- c语言 实现按行读取文件。把内容按照第三种内存模型打包数据传出,把行数通过函数参数传出
- c++文件操作详情
- C++之重载重写重定义
- C/C++头文件与变量的声明和定义
- Java与C++创建对象