VS2008 : error PRJ0002 : 錯誤的結果 1 (從“d:/Program Files/Microsoft Visual Studio 9.0/VC/bin/cl.exe”返回)


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

於是,我到我VC安裝目錄 \Program Files\Microsoft Visual Studio 8\VC\bin 里一看,果然這三個文件的版本不一樣,然后我到目錄 D:\Program Files\Microsoft Visual Studio 8\Common7\IDE 里重新 copy 了這個三個相同版本的文件到 \Program Files\Microsoft Visual Studio 8\VC\bin ,然后重新編譯程序,果然沒有那個錯誤了。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM