在微软官方查询到错误提示的解释:
Fatal Error C1902
program database manager mismatch; please check your installation
A program database file (.pdb) was created using a newer version of mspdbXXX.dll than the one the compiler found on your system. This error usually indicates that mspdbsrv.exe or mspdbcore.dll are missing or have different versions than mspdbXXX.dll. (The XXX placeholder in the mspdbXXX.dll file name changes with each product release. For example, in Visual Studio 2015, the file name is mspdb140.dll.)
Ensure matching versions of mspdbsrv.exe, mspdbcore.dll, and mspdbXXX.dll are installed on your system. Ensure that mismatched versions have not been copied to the directory that contains the compiler and link tools for your target platform. For example, you might have copied the files so you could invoke the compiler or link tool from the command prompt without setting the PATH environment variable accordingly.
中文含义大概为:
程序数据库文件(.pdb)是使用比编译器在系统上找到的mspdbxxx.dll版本新的mspdbxxx.dll创建的。此错误通常表示缺少mspdbsrv.exe或mspdbcore.dll,或者它们的版本与mspdbxxx.dll不同。(mspdbxxx.dll文件名中的xxx占位符随每个产品版本而更改。例如,在Visual Studio 2015中,文件名为mspdb140.dll。)
确保系统上安装的mspdbsrv.exe、mspdbcore.dll和mspdbxxx.dll的版本相匹配。确保未将不匹配的版本复制到包含目标平台的编译器和链接工具的目录。例如,您可能已经复制了这些文件,因此可以从命令提示符调用编译器或链接工具,而无需相应地设置PATH环境变量。
mspdbsrv.exe、mspdbcore.dll和mspdbxxx.dll,或者它们的版本不匹配。
解决方法:
将安装目录 D:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE 下的mspdbsrv.exe、mspdbcore.dll和mspdbxxx.dll 三个文件拷贝到目录 D:\Program Files\Microsoft Visual Studio 10.0\VC\bin 下
对于Visual Studio2010,mspdbxxx.dll为 mspdb100.dll