簡體   English   中英

錯誤MSB6006:“ midl.exe”退出,代碼為-1073741515

[英]error MSB6006: “midl.exe” exited with code -1073741515

在VS2015更新3中的C ++項目構建期間出現問題。錯誤消息如下:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.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上。)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM