VS2008 fatal error C1902: 程序数据库管理器不匹配;请检查安装
由于之前出现VS2008 : error PRJ0002 : 错误的结果 1 ,于是从网上下载了一个mspdb80.dll放进Microsoft Visual Studio 8/VC/bin目录,于是出现了fatal error C1902: 程序数据库管理器不匹配;请检查安装
于是从 VC安装目录下的/Common7/IDE 目录下拷贝这三个文件到 安装目录下的VC/bin下即可
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 's helpful message about mspdbsrv.exe.
4. I just copied that EXE to /VC/bin/ and everithing becomes Ok. 5. Now I can compile anything from both MSDev and C:/ :).
fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
上网搜索发现是嵌入清单的问题,于是对该工程以及所有依赖工程进行如下操作
右键->工程属性->配置属性-> 清单工具->输入和输出->嵌入清单,选择[否]
VS2010 2012CLR更换NET版本不像C#可以项目属性直接更改,需要修改 *.vcxproj里面 <PropertyGroup Label="Globals">节点添加以下内容 <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
VS2012使用VS2010编译vc++项目以支持XP系统运行,项目属性 常规平台工具集选择Visual Studio 2010 (v100),必须同时安装VS2010 2012

浙公网安备 33010602011771号