How to build with v90 platform toolset in VS2012 without VS2008, using Windows SDK?

后端 未结 3 623
眼角桃花
眼角桃花 2020-12-08 17:07

I use Visual Studio 2012 and this is the only version of Visual Studio I have installed. I need to build certain C++ projects with the v90 platform toolset (of Visual Studio

3条回答
  •  情深已故
    2020-12-08 17:44

    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

提交回复
热议问题