gpt4 book ai didi

c++ - Release模式仍然依赖于 MSVCP110D.dll (C++ MSVS)

转载 作者:可可西里 更新时间:2023-11-01 15:57:21 26 4
gpt4 key购买 nike

我是 C++ 编程的新手,刚刚制作了一个简单的计算器。我决定与我的 friend 分享它,并在多次尝试后弄清楚了如何在 Release模式下编译它。但是,即使在 Release模式下,它仍然依赖于 MSVCP110D.dll。我想知道是否有办法解决这个问题?

最佳答案

1) MSVCP110D.dll 是 MS C 运行时库的“调试”版本的运行时 .dll。所以看起来您的 .exe 可能根本没有为“发布”正确构建。

2) 以下是“Visual Studio Runtime Redistributable”的信息:

http://www.microsoft.com/en-us/download/details.aspx?id=30679

3) 以下是有关此特定问题的更多信息:

http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvc/thread/e128dff6-cef5-4a81-b6de-fcbcaa7a23bb

Unfortunately the msvcp100D.dll is a debug dll and it isn't included in the Microsoft Visual C++ Redistrutable package. This is becouse normally debug version aren't release to other than developer. Developer have installed it by default with Visual Studio.

You can compile your project in "Release" so all dll which you'll need will be included in the Microsoft Visual C++ Redistrutable package.

Otherwise you can do the static link of all libraries(specify /MT in Release and /MTd in Debug configuration into compiler options): but personally I don't recommend it becouse you put in the executable many information(used by the debugger) which will slow down your app.

关于c++ - Release模式仍然依赖于 MSVCP110D.dll (C++ MSVS),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16621089/

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