1、errorc2859 90.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 …..debugvc90.pdb
解决方法:在属性配置里(1)、cc++–>general–>debug information format:改为c7 compatible (/z7);(2)、cc++–>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:windowssystem32,ok即可。
7、断点调试时,出现thereis no source code available for the current location
解决方法:tools–>options–>debugging–>general–>把requiresource files to exactly match the original version前面的勾去掉即可。
本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。
ctvol管理联系方式QQ:251552304
本文章地址:https://www.ctvol.com/c-cdevelopment/606378.html