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:

  1. VS2013 has to use VS2010 libs
  2. Using WinSDK 7.1 (Yodans 2.) 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 uses 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 ( So now its tested Yodan ;-) )

My mistake:

  1. 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!
  2. 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

posted @ 2017-01-10 11:30  BinSys  阅读(303)  评论(0编辑  收藏  举报