gpt4 book ai didi

c++ - 使用 Visual Studio 生成的 exe 在其他 pc 上创建 dll 错误

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

我用 Visual Studio 编写了一个程序,我想与一些 friend 分享。但是当获取包含包含我的 .exe 文件的调试文件夹的完整文件夹并将其发送给 friend 时,它会抛出 3 个错误:
缺少 vcruntime140.dll
缺少 MSVCP140D.dll
缺少 urctbased.dll
(顺序可能不正确)我们尝试在 this 上重新安装/更新 Microsoft Visual C++ Redistributable 2017 x64页面,但没有任何积极的结果。
这可能是个问题,我正在使用 SDL2 库吗?我将 SDL2.lib 复制到他们的 Syswow64 文件夹和 system32 文件夹中,这消除了特定的 .dll 错误,但让其他错误首先出现。

最佳答案

在构建项目之前选择 Realese 选项,然后将整个 Release 文件夹发送给您的 friend 应该可以解决这个问题。

关于c++ - 使用 Visual Studio 生成的 exe 在其他 pc 上创建 dll 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48621682/

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