简体   繁体   English

无法打开包含文件:'ctype.h':没有这样的文件或目录

[英]Cannot open include file: 'ctype.h': No such file or directory

I installed c++ package on VS 2015 , if I tried to build the project ,the following problem appears :我在 VS 2015 上安装了 c++ 包,如果我尝试构建项目,则会出现以下问题:

C1083 Cannot open include file: 'ctype.h': No such file or directory Win32Project5 c:\\program files (x86)\\windows kits\\8.1\\include\\um\\winnt.h 31 C1083 无法打开包含文件:'ctype.h':没有那个文件或目录 Win32Project5 c:\\program files (x86)\\windows kits\\8.1\\include\\um\\winnt.h 31

Any possible solution ....任何可能的解决方案......

Repair / Reinstall visual studio.修复/重新安装视觉工作室。 Make sure that the Windows SDK option (Probably 8.1 in your case) is ticked, As you can see in this picture:确保勾选了 Windows SDK 选项(在您的情况下可能是 8.1),如下图所示: 在此处输入图片说明

To add the missing component, go to Control Panel -> Uninstall a Program , and select to Change the installation of Visual Studio.要添加缺少的组件,请转到Control Panel -> Uninstall a Program ,然后选择更改 Visual Studio 的安装。 Then, here is the option you need to check:然后,这是您需要检查的选项: 在此处输入图片说明 Then press "Modify".然后按“修改”。

Also don't forget to update the project's Properties to be using Windows SDK version 10.0.17134.0.另外不要忘记更新项目的属性以使用 Windows SDK 版本 10.0.17134.0。 在此处输入图片说明

在解决方案资源管理器中右键单击您的解决方案或项目并将您的解决方案或项目重定向到已安装的 SDK 版本

Here is mine VS 2017 build tools configuration to make Python 3.7 and up to compile on my local machine and fix.这是我的 VS 2017 构建工具配置,用于使 Python 3.7 及更高版本在我的本地机器上编译并修复。 Please notice that MS changed VS Studio Build Tools interface请注意 MS 更改了 VS Studio Build Tools 界面

pyodbc编译的VS Build Tool 2017配置

In order to make code to compile you also MUST to install ODBC driver为了使代码编译,您还必须安装ODBC 驱动程序

You can download VS 2017 Build tools from: https://visualstudio.microsoft.com/downloads/您可以从以下位置下载 VS 2017 构建工具: https : //visualstudio.microsoft.com/downloads/

VS 构建工具 2017 下载

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法打开包含文件:'VersionHelpers.h':没有这样的文件或目录 - Cannot open include file: 'VersionHelpers.h': No such file or directory 无法打开包含文件 - 'gtest.h' - 没有这样的文件或目录 - Cannot open include file - 'gtest.h' - No such file or directory 无法打开包含文件:'basewin.h':没有此类文件或目录 - Cannot open include file: 'basewin.h': No such file or directory 无法打开包含文件:“ sqlite3.h”:没有此类文件或目录 - Cannot open include file: 'sqlite3.h': No such file or directory 无法打开包含文件:'jni.h':没有这样的文件或目录 - Cannot open include file: 'jni.h': No such file or directory 无法打开包含文件:'ntddk.h':没有这样的文件或目录 - Cannot open include file: 'ntddk.h': No such file or directory 无法打开包含文件:'vector.h':没有这样的文件或目录 - Cannot open include file: 'vector.h': No such file or directory 无法打开包含文件:“unistd.h”:没有这样的文件或目录 - Cannot open include file: 'unistd.h': No such file or directory 无法打开包含文件:'graphics.h':没有这样的文件或目录 - Cannot open include file: 'graphics.h': No such file or directory 无法打开包含文件:'d3dx9.h':没有这样的文件或目录 - Cannot open include file: 'd3dx9.h': No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM