0

I have a problem during C++ project build in VS2015 update 3. the error message is as follow:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(1318,5): error MSB6006: "midl.exe" exited with code -1073741515

Edit: This is a project which using SDK 10.0.150310.
On Windows 10 the build succeeded but on Windows 7 failed with the error as described.

Oren
  • 21
  • 1
  • 8

2 Answers2

0

The error -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.

So a dll is missing. Use ProcessMonitor, capture the activity and filter for DLL loading events. Now look in Result column where you see an error. Now look which DLL is missing.

magicandre1981
  • 27,895
  • 5
  • 86
  • 127
  • I see the first DLL in system32 folder (Windows 8), but I also miss the second. Looks like VS2015 needs those DLL which Win7 doesn't have. If you want to debug your app for Win7, compile it on WIn10 and use Remote Debugging Tools to debug the Application on Windows 7 – magicandre1981 May 01 '17 at 06:27
  • Did found two missing DLL files in the Result column says NAME NOT FOUND: api-ms-win-core-fibers-l1-1-1.dll and api-ms-win-core-localization-l1-2-1.dll. those are related to win8.1 sdks so i downloaded and installed it. but the error still exist. – Oren May 01 '17 at 07:23
  • now that i have the dll files (took it from win8 OS), installation with gacutil return "Failure adding assembly to the cache: The module was expected to contain an assembly manifest.", and those are files which located unfer multiple locations as i checked in win8. – Oren May 22 '17 at 12:36
  • what do you want to do now with GACUtil? – magicandre1981 May 22 '17 at 14:29
  • again, what do you want to do with GACutil? – magicandre1981 Jun 03 '17 at 07:19
0

using missins DLL or installing win8 SDK didn't helped. only compiling it on windows10 or windows server2016 solved the issue (stopped fighting with it because originally the code wrote on win10..)

Oren
  • 21
  • 1
  • 8