Visual Studio 2013: CL.exe exited with code -1073741515 Visual Studio 2013: CL.exe exited with code -1073741515 windows windows

Visual Studio 2013: CL.exe exited with code -1073741515


When trying to compile a project with Platform Toolset to Windows7.1SDK...

That's not a valid selection in a "fresh" install for VS2013. Not very clear what you've been doing, it certainly isn't "fresh" anymore. Do treat Regedit.exe as a loaded weapon, the registry key set that configures VS has been getting pretty doggone convoluted as of late.

The compiler crashes with -1073741515 == 0xC0000135 == STATUS_DLL_NOT_FOUND. That's a pretty serious mishap of course, it should never occur when you target SDK 7.1 since that still uses the same compiler, only the SDK directory is changed. The compiler itself, as well as the DLLs it uses, are not part of the SDK and only are provided if the machine doesn't have VS installed. You can use SysInternals' Process Monitor to diagnose this, you'll see the CL.EXE process searching for a DLL and not finding it.

The correct way to target 7.1 is to use the v120_xp toolset selection. That builds programs that can still run on XP, it automatically also selects the 7.1A SDK that was installed on your machine. Do try to undo the changes you've made.


Referencing Yodans solution from How to build with v90 platform toolset in VS2012 without VS2008, using Windows SDK?:

As pointed out by Hans Passant cl.exe looks for mspdb100.dll (among others) and does not find them. The needed files are in the directory mentioned in 7. below:

My working setup:

  1. VS2013 needs to use VS2010 libs
  2. Using WinSDK 7.1 build tools (v100) in VS2013
  3. clean install, uninstalling everything mentioned in the sdk release notes (can be downloaded at http://www.microsoft.com/en-us/download/details.aspx?id=8279 under category Details)
    1. Microsoft Windows SDK for Windows 7 (7.1) (the Windows SDK core-component files)
    2. Application Verifier
    3. Debugging Tools for Windows
    4. Windows Performance Toolkit
    5. Microsoft Help Viewer 1.0
    6. Microsoft Visual C++ 2010 Redistributable
    7. Microsoft Visual C++ 2010 Standard Edition
    8. Additionally removed all .NET and VC++ related MS Software (not tested if necessary)
  4. choosing Windows7.1SDK as Platform Toolset in VS2013
  5. error MSB6006: "CL.exe" exited with code -1073741515
  6. cl.exe looks for one of msobj100.dll, mspdb100.dll, mspdbcore.dll and mspdbsrv.exe
  7. Added to PATH: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
  8. Build works and binary is usable!

A mistake I did:

  1. copied files in 6. above to C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin, believing this directory is in PATH, but it was not!
  2. So better do as sugested in 7. above or by Yodan in How to build with v90 platform toolset in VS2012 without VS2008, using Windows SDK?


The following steps work for me in VS 2017.

1.Close VS 2017.2.Restart machine.3.Open solution in VS 2017.4.Build the project.This time I didn't get following error and it builds successfully.

error msb6006 "link.exe" exited with code -1073741819.