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前面的勾去掉即可。

 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值