错误:"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.
(我是清单文件/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.
推荐答案
打开项目的属性表,转到配置属性"->"C/C ++"->代码生成"页面,然后将运行时库"选择更改为/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运行时,只是避免了清单和版本特定的运行时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屋!