gpt4 book ai didi

c++ - 安装 VC++ 2010 无法解决 dll 加载问题

转载 作者:行者123 更新时间:2023-11-28 01:04:57 25 4
gpt4 key购买 nike

我有一个使用 /MDd 编译的 C++ .exe(因为我不能将 CLR 与/MTd 一起使用)。起初我得到 couldn't find x.dll 是在安装 VC++ 运行时时安装的。我安装了VC++ 2010运行时后,仍然报错。我已经验证它正在寻找的 .dll (msvcpsomethingd.dll) 位于正确的文件夹 ([SystemDrive]\Windows\system32 >).以前有人遇到过这个问题吗?

最佳答案

How to deploy debug CRT .dlls

How to deploy CRT .dlls in general to the application local folder

简短的回答是,您必须在目标机器上使用自定义安装项目显式安装 VS 2010 的 CRT 调试运行时,或者确保平台的 CRT .dll 与应用程序位于同一文件夹中。

如果您使用多个版本的调试 CRT(即 x86 和 x64),则必须明确安装 CRT。

关于c++ - 安装 VC++ 2010 无法解决 dll 加载问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6756163/

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