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.

Leave a Comment