错误 MSB6006:"midl.exe"退出,代码为 -1073741515

error MSB6006: "midl.exe" exited with code -1073741515

本文关键字:代码 -1073741515 退出 exe MSB6006 midl 错误      更新时间:2023-10-16

我在VS2015更新3中的C 项目构建期间有问题。错误消息如下:

C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Microsoft.CppCommon.targets(1318,5): error MSB6006: "midl.exe" exited with code -1073741515

编辑:这是一个使用SDK 10.0.150310的项目。
在Windows 10上,构建成功,但Windows 7上的错误失败了,如所述。

错误 -1073741515 == 0xC0000135 == STATUS_DLL_NOT_FOUND

STATUS_DLL_NOT_FOUND                                           ntstatus.h
The program can't start because %hs is missing from your computer. Try reinstalling the program to fix this problem.

因此丢失了DLL。使用ProcessMonitor,捕获活动并过滤到DLL加载事件。现在,查看结果列,您会看到错误。现在看哪个DLL缺少。

使用MISSINS DLL或安装Win8 SDK没有帮助。仅在Windows10或Windows Server2016上编译它解决了问题(因为代码最初在WIN10上写了。(