[英]Build VS 2015 project in VS 2019
I'd like to compile the VS C++ 2015
project in my VS C++ 2019
( Win 10
).我想在我的VS C++ 2019
( Win 10
)中编译VS C++ 2015
项目。 I've installed v140 platform toolset but when i set Platform Toolset
to Visual Studio 2015 (v140)
in Configuration Properties->General
an try to build the solution i get:我已经安装了v140平台工具集,但是当我在Configuration Properties->General
Platform Toolset
设置为Visual Studio 2015 (v140)
时,尝试构建我得到的解决方案:
1>cl : Command line warning D9035: option 'Gm' has been deprecated and will be removed in a future release
1>WindowsProject2.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\windows.h(167): fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory
In the Target Platform Version
i have 10.0.18362.0
(the only one to select from).在Target Platform Version
中,我有10.0.18362.0
(select 的唯一一个)。
What can i do more to build the solution?我还能做些什么来构建解决方案?
According to the Doc: Microsoft C++ porting and upgrading guide根据文档: Microsoft C++ 移植和升级指南
For projects created in Visual Studio 2010 through 2017, just open the project in Visual Studio 2019.对于在 Visual Studio 2010 到 2017 中创建的项目,只需在 Visual Studio 2019 中打开该项目。
As far as I'm concerned, you could open Visual Studio 2019 c++ code in Visual Studio 2017 directly.就我而言,您可以直接在 Visual Studio 2017 中打开 Visual Studio 2019 c++ 代码。
fatal error C1083: Cannot open include file: 'excpt.h'致命错误 C1083:无法打开包含文件:“excpt.h”
The compiler generates a C1083 error when it cannot find a file.编译器在找不到文件时会生成 C1083 错误。 I suggest you could try to find the file first.我建议您可以先尝试找到该文件。
I see the Header file here:我在这里看到 Header 文件:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\include
And then you could add the path to the search for includes files in the project properties.然后您可以在项目属性中添加搜索包含文件的路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.