1、errorC2859 vc90.idb is not the idb file that was used when this precompiled headerwas created。
解決方法:選中工程-->點(diǎn)擊右鍵屬性-->ConfigurationProperties-->C/C++-->Output Files-->Program Database File Name中的$(IntDir)/vc90.pdb改成$(IntDir)/(工程名).pdb便可。
2、Failedto return new code element.
解決方法:關(guān)閉工程,刪除工程中的.ncb文件,再重新打開工程便可。
3、makesure that the file is not open by another process and is not write-protected
解決方法:關(guān)閉工程,再重新打開便可。
網(wǎng)上有的說:Tools-->Options-->Projectsand Solutions-->Builde and Run-->將maximum number of parallelproject builds該為1便可,可是試試了其實(shí)不起作用。
4、add/removeoperation is impossible,because the code element 'Cxxx' is read only
解決方法:關(guān)閉工程,刪除工程中的.ncb和.suo兩個(gè)文件,再重新打開工程便可。
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:點(diǎn)擊New Line(類似文件夾圖標(biāo))添加1行(cmd.exe所在目錄):C:\WINDOWS\system32\,OK便可。
7、斷點(diǎn)調(diào)試時(shí),出現(xiàn)thereis no source code available for the current location
解決方法:Tools-->Options-->Debugging-->General-->把Requiresource files to exactly match the original version前面的勾去掉便可。