Visual Studio 14.0和Windows Kits中的C2371错误包括文件夹 [英] C2371 Errors in Visual Studio 14.0 and Windows Kits Include Folders

查看:545
本文介绍了Visual Studio 14.0和Windows Kits中的C2371错误包括文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用Visual Studio 2017重新编译C ++项目时,以后会出现以下错误。

When I am recompiling a C++ project with Visual Studio 2017, which used to work well in Visual Studio 2015, the following error shows up.

有些问题排查 我在完成上述错误之前已经完成了(1)我尝试用Visual编译这个项目Studio 2015,它显示Visual Studio错误D8016:'/ ZI'和'/ Gy'命令行选项不兼容。我通过关闭/ Gy来解决这个问题。 (2)
我尝试使用Visual Studio 2015编译这个项目,上面的错误仍然存​​在; (3)我尝试在项目设置的附加  include目录中添加$(UniversalCRT_IncludePath),这些错误仍然存​​在; (4)我尝试使用SDK windows 8.1而不是窗口10.0的
,其他错误显示为"stdio.h"。找不到。

Some troubleshoot I've done before stuck by the above errors are (1) I try to compile this project with Visual Studio 2015, it shows Visual Studio error D8016: '/ZI' and '/Gy' command-line options are incompatible. I solve this by turn off /Gy. (2) I try to use Visual Studio 2015 to compile this project, the above error remains; (3) I try to add $(UniversalCRT_IncludePath) in the additional include directories of the project setting, these error remains; (4) I try to use SDK windows 8.1 instead of window 10.0, other errors show up like "stdio.h" cannot find.

感谢您的帮助或建议< g class =" gr_ gr_1424 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep"数据-GR-ID =" 1424" ID = QUOT; 1424">快乐< / g取代;新的2019年

Thanks for your help or any suggestion and <g class="gr_ gr_1424 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" data-gr-id="1424" id="1424">happy</g> new year of 2019

推荐答案

b

Hi,

感谢您在这里发帖。

Thanks for posting here.

当我查看"microsoft visual studio \2017 \community\vc\ tools\msvc\14.15.26726\include\stdint.h"在几台机器上的文件,我发现没有"CHAR"和"DWORD"文件中的类型。你有没有检查你的文件?

When I check the "microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\stdint.h" file on several machine, I find that there is no "CHAR" and "DWORD" types in the file. Did you check your files?

如果可能的话,如果你能为我们提供一个简单的演示来重现你的问题,我将不胜感激。因此,我们可以帮助您轻松解决问题。

If possible, I would appreciate it if you could provide a simple demo for us to reproduce your issue. So that we could help you solve the problem easily.

我想你的VS环境有问题。也许你可以尝试干净地卸载vs2015和vs2017,并再次重新安装vs2017。

I guess that something wrong with your VS environment. Maybe you could try to uninstall both vs2015 and vs2017 cleanly, and reinstall the vs2017 again.

祝福,祝你好b $ b

Best Wishes,

杰克


这篇关于Visual Studio 14.0和Windows Kits中的C2371错误包括文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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