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 的版本不同,確定這三個文件的相同版本安裝在系統里。