且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Visual Studio 2012和Windows SDK 7.1编译VC ++ 2010项目

更新时间:2023-02-16 16:08:22

看起来这是不可能的,主要是因为没有VS2010是部署MFC库,我们有很多项目使用它们。 >

我们必须为VS2010和VS2012购买许可证:S


I have a lot of projects done with VS2010 in C++. Now we have switched to VS2012 but we want to continue building the projects with the VS2010 runtime (we need to support Windows XP).

To our understanding this could be possible using Windows SDK 7.1 as the VC compiler is there so we installed it. VS2012 recognized the SDK and now we have a Platform Toolset named Windows7.1SDK.

The problem comes when building the projects as some projects are returning a:

error MSB6006: "CL.exe" exited with code -1073741515.

Also, projects depending on the MFCs are failing too. MFCs aren't available with Windows SDK? Does this mean that we need to buy VS2010 licenses to install them on machines with VS2012 just to build using the VS2010 compiler?

Thanks in advance.

Looks like it's not possible at all, mainly because nothing but VS2010 is deploying the MFC libraries and we have a lot of projects using them.

We'll have to buy licenses for VS2010 and VS2012 :S