VS2008 : error PRJ0002 : 错误的结果 1 (从“d:/Program Files/Microsoft Visual Studio 9.0/VC/bin/cl.exe”返回)
解决方案:
在d:/Program Files/Microsoft Visual Studio 9.0/VC/bin直接点击cl.exe,然后发现少了哪个库,直接去D:\Program Files\vs2008\Common7\IDE目录下找到该文件复制到Bin下就可以了。
若再编出现新问题,如:
vs2008编译错误fatal error C1902: 程序数据库管理器不匹配;请检查安装
则:
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'shelpful message about mspdbsrv.exe.
4. I just copied that EXE to VC\Bin and everithing becomes Ok.
5. Now I can compile anything .
在程序的数据库文件(.pdb)被一个比编译时版本新的 mspdb80.dll 所生成,错误通常指示 mspdbsrv.exe 或 mspdbcore.dll 丢失或者其版本和 mspdb80.dll 的版本不同,确定这三个文件的相同版本安装在系统里。