错误:“BLAH.EXE"中的并排配置信息包含错误 [英] Error: The Side-by-Side configuration information in "BLAH.EXE" contains errors
问题描述
这是 Dependency Walker 在我使用 VC++ 2005 Express Edition 构建的可执行文件上给我的错误.尝试运行 .exe 时,我得到:
This is the error Dependency Walker gives me on an executable that I am building with VC++ 2005 Express Edition. When trying to run the .exe, I get:
This application has failed to start because the application configuration
is incorrect. Reinstalling the application may fix this problem.
(我对 manifest/SxS/etc. VC++ 2003 之后的处理方式不熟悉.)
(I am new to the manifest/SxS/etc. way of doing things post VC++ 2003.)
我在构建 .exe 的同一台机器上运行.在事件查看器中,我没有帮助:
I am running on the same machine I am building the .exe with. In Event Viewer, I have the unhelpful:
Faulting application blah.exe, version 0.0.0.0, faulting module blah.exe,
version 0.0.0.0, fault address 0x004239b0.
推荐答案
打开项目的属性表,进入 Configuration Properties -> C/C++ -> Code Generation 页面,将 Runtime Library 选择更改为/MT或/MTd,以便您的项目不使用 DLL 运行时库.
Open the properties sheet for your project, go to the Configuration Properties -> C/C++ -> Code Generation page, and change the Runtime Library selection to /MT or /MTd so that your project does not use the DLL runtime libraries.
VS2003 及更高版本使用的 C/C++ DLL 运行时不会自动随最新版本的操作系统一起分发,并且在没有此类问题的情况下安装和开始工作真的很痛苦.静态链接 c-runtime,避免清单和特定版本的运行时 dll 造成的混乱.
The C/C++ DLL runtimes used by VS2003 and up are not automatically distributed with the latest version of the OS and are a real pain to install and get working without this kind of problem. statically link the c-runtime and just avoid the total mess that is manifests and version specific runtime dlls.
这篇关于错误:“BLAH.EXE"中的并排配置信息包含错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!