1. 程式人生 > >關於VS2010出現錯誤:程式資料庫管理器不匹配;請檢查安裝 解決方案

關於VS2010出現錯誤:程式資料庫管理器不匹配;請檢查安裝 解決方案

http://bbs.csdn.net/topics/360074795

裡面做了詳細的探討,下面這條回覆親測有效


安裝VC++ SP1後,除錯程式時候提示錯誤 Fatal Error C1902:程式資料庫管理器不匹配;請檢查安裝,不知道什麼意思,於是Google了一下,網上有說是“建立程式資料庫檔案(.pdb) 時所使用的DBI.dll 版本比編譯時發現的版本新。在系統上安裝最新的DBI.dll 版本。 ”不知道怎麼安裝新的DBI.dll,於是又去MSDN上搜索錯誤資訊,於是搜出了這麼一條:Fatal Error C1902 (C++) :A program database file (.pdb) was created using a newer version of mspdb80.dll than the one found while compiling.This error usually indicates that mspdbsrv.exe or mspdbcore.dll are missing or have different versions from mspdb80.dll. Ensure matching versions of mspdbsrv.exe, mspdbcore.dll, and mspdb80.dll are installed on your system.


意思好像是:程式的資料庫檔案(.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 ,然後重新編譯程式,果然沒有那個錯誤了。