将VC ++项目从VS2010迁移到VS2015时编译时间错误 [英] Compile time error while migrating VC++ project from VS2010 to VS2015

查看:119
本文介绍了将VC ++项目从VS2010迁移到VS2015时编译时间错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我开始将VS版本从2010年迁移到2015年,最终导致编译时错误。请帮助我解决这个问题。

Recently i started to migrate VS version from 2010 to 2015 and finally ended up with compile time error. kindly help me to solve this issue.

使用Windows sdk 8.1

Am using Windows sdk 8.1




错误描述:




问候,

Bharathiraja D.

Bharathiraja D.

推荐答案

亲爱的朋友,

欢迎来到MSDN论坛。

Welcome to MSDN forum.

许多升级的项目和解决方案无需修改即可成功构建。但是,某些项目可能需要更改设置,源代码或两者。我们建议您使用以下指南来解决设置问题:

Many upgraded projects and solutions can be built successfully without modification. However, some projects might require changes to settings, source code, or both. We recommend that you use the following guidelines to address the settings issues:



  1. 制作现有项目和解决方案文件的副本。并排安装当前版本的Visual Studio和早期版本,以便在需要
    时可以比较文件的版本。

  1. Make a copy of the existing project and solution files. Install the current version of Visual Studio and the earlier version side by side so that you can compare versions of the files if you want to.

在当前版本的Visual Studio中,打开 - 从而升级 - 项目或解决方案的副本并保存。

In the current version of Visual Studio, open—and thereby upgrade—the copy of the project or solution and save it.

对于每个转换后的项目,打开快捷菜单并选择  属性。在  配置属性下,选择  常规  
然后  平台工具集,选择当前版本。 (例如,对于Visual Studio 2013,请选择v120。)

For each converted project, open the shortcut menu and choose Properties. Under Configuration Properties, select General and then for Platform Toolset, select the current version. (For example, for Visual Studio 2013, select v120.)

构建解决方案。如果构建失败,请修改设置并重建。

Build the solution. If the build fails, modify the settings and rebuild.

参考链接:

https://msdn.microsoft.com/en-us/library/kyb7zzw4.aspx

潜在问题请参考这篇文章:

And the potential issues, please refer to this article:

https://msdn.microsoft.com/en-us/library/mt743084.aspx

希望有所帮助。

最佳问候,

Fletcher


这篇关于将VC ++项目从VS2010迁移到VS2015时编译时间错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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