VS2013 has to use VS2010 libs
ref : http://stackoverflow.com/questions/24775363/how-to-build-with-v90-platform-toolset-in-vs2012-without-vs2008-using-windows-s/25671529#25671529
same to vs2015
One addition/update for VS2013 to Yodans answer:
My working setup:
- VS2013 has to use VS2010 libs
- Using WinSDK 7.1 (Yodans 2.) build tools (v100) in VS2013
- 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)
- Microsoft Windows SDK for Windows 7 (7.1) (the Windows SDK core-component files)
- Application Verifier
- Debugging Tools for Windows
- Windows Performance Toolkit
- Microsoft Help Viewer 1.0
- Microsoft Visual C++ 2010 Redistributable
- Microsoft Visual C++ 2010 Standard Edition
- Additionally removed all .NET and VC++ related MS Software (not tested if necessary)
- choosing Windows7.1SDK as Platform Toolset in VS2013
- error MSB6006: "CL.exe" exited with code -1073741515
- cl.exe uses msobj100.dll, mspdb100.dll, mspdbcore.dll and mspdbsrv.exe
- Added to PATH C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
- Build works and binary is usable ( So now its tested Yodan ;-) )
My mistake:
- copied files in 7. above to C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin (Yodans 3.), believing this dir is in PATH, but it was not!
- So better do as sugested by Yodan and tested by myself in 8. above
p.s. same answer is solving this problem: Visual Studio 2013: CL.exe exited with code -1073741515