gpt4 book ai didi

visual-studio-2008 - R6034 : An application has made an attempt to load the C runtime library incorrectly

转载 作者:行者123 更新时间:2023-12-01 04:17:41 25 4
gpt4 key购买 nike

在运行我刚刚从 VS2003 -> VS2008 更新(并清理)的程序时,出现此 R6034 错误。更准确地说:

"R6034: An application has made an attempt to load the C runtime library incorrectly."



运行时似乎几乎一直在同一个地方发生。我真的不知道为什么,但我尝试了一些在谷歌搜索时发现的建议。例如添加 msvc dll,但这不起作用。

关于为什么会发生此错误的任何帮助都会很棒。谢谢

最佳答案

从 Visual Studio 2005 开始,您必须使用 list 文件引用 C 运行时。
通过将它们放在路径中来引用 DLL 将给出上述错误。

list 文件将如下所示:

<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50727.4053' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
</assembly>

您可以使用 MT 命令将 list 作为资源集成到应用程序中,但这不是强制性的。除了您的应用程序(如 MYAPP.EXE.MANIFEST)之外,还允许拥有 list 。

关于visual-studio-2008 - R6034 : An application has made an attempt to load the C runtime library incorrectly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3052279/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com