VS2005 VC.net fatal error C1902解决方案

今天突然间出现这个错误,无论如何编译不过去,无奈百度之。

幸运,搜了两篇文章就结合自身问题解决了。看到文章的作者说寻找答案的痛苦,我真是幸运。

我的解决方法:

我看了文章以后,发现出现问题同样是拷贝了一个mspdb80.dll,解决方案里面也特意提到了这个dll,我想也许是拷贝了mspdb80.dll的问题,就把拷贝到"../Microsoft Visual Studio 8/VC/Bin"mspdb80.dll删了。把vs重启后就好了。

或者,也有可能是设置了path,使exe可以找到了本不能找到的mspdb80.dll,建议把多加的path删掉。

这里为找到的文章:感谢作者提供的方案,我还没有尝试这个mspdbsrv.exe。假如看到我这篇文章的人,删了dll删了path还是不行,建议按照下面文章再尝试一下。


Here are steps how I got it and solve:
1. I like to compile some sources from the command prompt, so I added to the PATH environment variable - "C:/Program Files/Microsoft Visual Studio 8/VC/Bin". After that I had to copy some files from "C:Program Files/Microsoft Visual Studio 8/Common7/IDE" to get cl.exe working (one of files was mspdb80.dll).
2. Some time later I tryed to compile a project from MSDev and got C1902 error.
3. With MSDN search I got to this place to see Jonathan Caves's helpful message about mspdbsrv.exe.
4. I just copied that EXE to VC/Bin and everithing becomes Ok.
5. Now I can compile anything .

注:这个好像是VS2005的一个bug,有个hotfix,我没有具体查证过。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值