vs2008中常见错误解决方法汇总
1、error C2859 vc90.idb is not the idb file that was used when this precompiled header was created。
????? 解決方法:選中工程-->點擊右鍵屬性-->Configuration Properties-->C/C++-->Output Files-->Program Database File Name中的$(IntDir)/vc90.pdb改為$(IntDir)/(工程名).pdb即可。
2、Failed to return new code element.
???? 解決方法:關閉工程,刪除工程中的.ncb文件,再重新打開工程即可。
3、make sure that the file is not open by another process and is not write-protected
???? 解決方法:關閉工程,再重新打開即可。
???? 網上有的說:Tools-->Options-->Projects and Solutions-->Builde and Run-->將maximum number of parallel project builds該為1即可,可是試試了并不起作用。
4、add/remove operation is impossible,because the code element 'Cxxx' is read only
???? 解決方法:關閉工程,刪除工程中的.ncb和.suo兩個文件,再重新打開工程即可。
5、error C2471 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-->General Debug Info:改為Yes (/DEBUG)即可。
6、Error spawning 'cmd.exe'
?? 解決方法:Tools-->Options-->Projects and Solutions-->VC++ Directories:點擊New Line(類似文件夾圖標)添加一行(cmd.exe所在目錄):C:\WINDOWS\system32\,OK即可。
7、斷點調試時,出現there is no source code available for the current location
??? 解決方法:Tools-->Options-->Debugging-->General-->把Require source files to exactly match the original version前面的勾去掉即可。
?
?
總結
以上是生活随笔為你收集整理的vs2008中常见错误解决方法汇总的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在vs2008中配置OpenCV2.2
- 下一篇: WaitForSingleObject和