加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

VC++调试常见错误总结

发布时间:2020-12-13 21:13:48 所属栏目:PHP教程 来源:网络整理
导读: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 改成

1errorC2859 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便可。

2Failedto return new code element.

    解决方法:关闭工程,删除工程中的.ncb文件,再重新打开工程便可。

3makesure 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该为便可,可是试试了其实不起作用。

4add/removeoperation is impossible,because the code element 'Cxxx' is read only
     
.suo两个文件,再重新打开工程便可。

5errorC2471 cannot update program database …..debugvc90.pdb

   解决方法:在属性配置里(1)CC++-->General-->Debug Information format:改成C7 Compatible (/Z7)(2)CC++-->Code Generation-->Enable String PoolingYes (/GF)(3)Linker-->Debuging-->GeneralDebug InfoYes(/DEBUG)6Errorspawning 'cmd.exe'

  解决方法:Tools-->Options-->Projectsand Solutions-->VC++ Directories:点击New Line(类似文件夹图标)添加1行(cmd.exe所在目录C:WINDOWSsystem32OK7、断点调试时,出现thereis no source code available for the current location

Tools-->Options-->Debugging-->General-->Requiresource files to exactly match the original version前面的勾去掉便可。

 


(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读