如何使用Visual Studio 2012和Windows SDK 7.1编译VC ++ 2010项目 [英] How to compile VC++ 2010 projects using Visual Studio 2012 and Windows SDK 7.1

查看:546
本文介绍了如何使用Visual Studio 2012和Windows SDK 7.1编译VC ++ 2010项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多项目使用VS2010在C ++。现在我们已经切换到VS2012,但我们想继续构建项目与VS2010运行时(我们需要支持Windows XP)。



为了我们的理解,这可能是使用Windows SDK 7.1作为VC编译器是有的,所以我们安装它。 VS2012识别SDK,现在我们有一个平台工具集命名为 Windows7.1SDK



当一些项目返回时,构建项目时出现问题:



>

错误MSB6006:CL.exe 退出代码为-1073741515。


此外,依赖于MFC的项目也会失败。 MFC不适用于Windows SDK?这是否意味着我们需要购买VS2010许可证来安装在VS2012的机器上,只是使用VS2010编译器来构建?



提前感谢。

解决方案

看起来这是不可能的,主要是因为没有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

这篇关于如何使用Visual Studio 2012和Windows SDK 7.1编译VC ++ 2010项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆