简体   繁体   中英

Adding VC2010 compiler to VS2012

I have installed VS2012 express.It uses VC11 compiler.I need to add also VC10 compiler to be able working with some older libs.I have installed Windows 7.1 SDK which comes with VC10 compiler.Now I can select VC10 from PlatformToolset.But when compiling I am getting this error:

Warning 1 warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. C:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\Microsoft.CppBuild.targets 297 5 (Visual Studio 2010)

Now , I am sure the problem is that I installed the VS not on C but on E.Though Windows SDK I have installed on E too.Somehow I see the config is looking for the "WindowsSDKDir " on C.Where can I change it ?

好吧,最后我通过删除Windows SDK并安装Visual Studio Express 2010来修复它。现在VS2012编译好VC10。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM