首页 > 解决方案 > Visual Studio - 如何检查我的程序需要运行哪些 DLL/遗漏了哪些 DLL?

问题描述

我刚刚下载了 Visual Studio 2017 社区。
一旦我尝试使用任何配置(发布/调试、x86/x64、空项目/windows 控制台应用程序)编译任何程序(甚至是最简单的“Hello World”),我就会收到以下错误:

Microsoft.CppCommon.targets(381,5): error MSB6006: error MSB6006: "CL.exe" exited with code -1073741515(这个错误STATUS_DLL_NOT_FOUND的意思是,我知道之前有人问过,但我不知道如何检查遗漏了哪些 DLL)。

Microsoft.CppCommon.targets(381):
   <CL Condition="'%(ClCompile.PrecompiledHeader)' != 'Create' and
   '%(ClCompile.ExcludedFromBuild)'!='true' and
   '%(ClCompile.CompilerIteration)' == '' and @(ClCompile) != ''"

您知道如何检查缺少哪些 DLL 吗?

标签: visual-studiovisual-studio-2017cl

解决方案


我是新手,但我希望我能正确回答。要达到实际的错误代码,您需要将其更改为十六进制。你的是

C0000135

. 据我所知,它与文件损坏有关,所以您对 dll 丢失的看法是正确的。在较旧的视觉效果中,了解它的方式是通过命令行。

从VS2010msbuild.exe <my.sln> /t:<mytargetproject>命令提示符运行,<my.sln>您的解决方案名称在哪里,并且<mytargetproject>是您尝试构建的项目。例如msbuild.exe helloworld.sln /t:mainproj

这是来自stackoverflow中不同帖子的引用。

使用 EDITBIN 时的错误代码 -1073741515

希望您可以更轻松地解决此问题。帮不上忙,因为我既不使用 VS 也不使用 Windows。祝你好运!


推荐阅读