问题描述
我们正在进行pf从VS2005切换到VS2012更新2.
We are in the process pf switching from VS2005 to VS2012 update 2.
我们正在构建大量的(主要是控制台的)本机C ++(没有MFC / ATL )可执行文件,使用几个常见的,静态链接库。这些可执行文件大多数运行在Win7机器上,但有些也部署在较旧的XP机器(或相应的服务器版本)上。大多数可执行文件是32位,但有些是64位。
We are building a large number of (mostly console) native C++ (no MFC/ATL) executables that use a couple of common, statically linked libraries. These executables mostly run on Win7 machines but some are also deployed on older XP machines (or the corresponding server versions). Most executables are 32-bit but some are 64-bit.
我的问题如下:
1 )如果有的话,使用v110_xp工具集来构建所有可执行文件和库,即使它们将在Win7 / Server2012上运行,有什么缺点?
1) What are the drawbacks, if any, to building all the executables and libraries using the v110_xp toolset, even if they will run on Win7/Server2012?
2)可能将使用v110_xp工具集构建的静态库链接到使用v110工具集构建的可执行文件?这些可执行文件在这两个平台上运行正常吗?
2) Is it possible to link static libraries built with the v110_xp toolset to an executable built with the v110 toolset? Will those executables run fine on both platforms? How about the other way around?
3)有没有办法在 .props
中设置平台工具集,属性表文件?我找不到办法这样做。
3) Is there a way to set the platform toolset in a .props
property sheet file? I could not find a way to do so.
4)有没有其他陷阱或问题的目标XP和Win7,我应该注意?
4) Are there any other pitfalls or issues with targeting XP and Win7 that I should be aware of?
谢谢!
推荐答案
您不能使用Update 2使用更新1或更新3(至少如果你考虑使用ATL或MFC)!
You must not use "Update 2", you must use either "Update 1" or "Update 3" (at least if you consider to use ATL or MFC)!
更新2已经破坏了对XP的支持!有关详情,请参阅
Update 2 has broken the support for XP! For more info see http://blogs.msdn.com/b/vcblog/archive/2013/05/07/fix-visual-studio-2012-update-2-breaks-windows-xp-targeting-with-atl-and-or-statically-linking-mfc.aspx
其他缺点可以在这里找到:
Other drawbacks can be found here: http://blogs.msdn.com/b/vcblog/archive/2012/10/08/10357555.aspx
您可以静态或动态链接!
You can either link statically or dynamically!
似乎在属性表中不可更改。
有关详细信息,另请参见
It seems that is not changeable in the property sheet.For more info, see also Working with Project Properties
这篇关于混合VS2012平台工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!