简体   繁体   English

VS2005 和 VS2008 的并排清单问题

[英]Side by Side manifest issue with VS2005 & VS2008

I have a C++ project I am building in VS2008.我有一个在 VS2008 中构建的 C++ 项目。 This project also links against a library (DLL + Import lib) that was built using VS2005 and thus loads VS2005 debug CRT library (everything is a debug build).该项目还链接到使用 VS2005 构建的库(DLL + 导入库),从而加载 VS2005 调试 CRT 库(一切都是调试版本)。

When attempting to run this executable built in VS2008, I get an error on loading due to that VS2005 DLL not finding the Debug CRT libraries, even though I have VS2005 installed with SP1.当尝试运行这个内置在 VS2008 中的可执行文件时,由于 VS2005 DLL 找不到调试 CRT 库,我在加载时遇到错误,即使我已经安装了 SP1 的 VS2005。 I've checked Windows updates too, so I'm not really sure what more I can do.我也检查了 Windows 更新,所以我不确定我还能做些什么。

How do I diagnose this problem?我如何诊断这个问题? I've looked at the Event Viewer in Windows and noticed that it can't find the debug VC80 CRT library, but that's all I know.我查看了 Windows 中的事件查看器,发现它找不到调试 VC80 CRT 库,但我只知道这些。 There's a version mismatch somewhere in here I guess, I just don't know how to fix it since I don't know much about this manifest/side-by-side stuff.我猜这里某处存在版本不匹配,我只是不知道如何解决它,因为我不太了解这个清单/并排的东西。

The OS I'm building on is Windows XP 32-bit.我正在构建的操作系统是 Windows XP 32 位。 I have VS2008 SP1 and VS2005 SP1 installed (so all debug manifests/CRT dlls should be available)我安装了 VS2008 SP1 和 VS2005 SP1(因此所有调试清单/CRT dll 都应该可用)

Learn to check or create or check appropriate assembly manifests .学习检查或创建或检查适当的程序集清单

Here is more info once you get that done. 完成后,这里有更多信息。

On Windows XP, if an external manifest is present in the application's local folder, the operating system loader uses this manifest instead of a manifest embedded inside the binary.在 Windows XP 上,如果应用程序的本地文件夹中存在外部清单,操作系统加载程序将使用此清单而不是二进制文件中嵌入的清单。 On Windows Server 2003 and later versions of Windows, the opposite is true—the external manifest is ignored and the embedded manifest is used when present.在 Windows Server 2003 和更高版本的 Windows 上,情况正好相反——忽略外部清单,并在存在时使用嵌入式清单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM