Cannot open include file: 'ctype.h': No su

2019-01-23 12:51发布

I installed c++ package on VS 2015 , if I tried to build the project ,the following problem appears :

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

Any possible solution ....

3条回答
Deceive 欺骗
2楼-- · 2019-01-23 12:53

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: enter image description here

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2019-01-23 13:05

Here is mine VS 2017 build tools configuration to make Python 3.7 and up to compile on my local machine and fix. Please notice that MS changed VS Studio Build Tools interface

VS Build Tool 2017 configuration for pyodbc compilation

In order to make code to compile you also MUST to install ODBC driver

You can download VS 2017 Build tools from: https://visualstudio.microsoft.com/downloads/

VS Build Tool 2017 download

查看更多
你好瞎i
4楼-- · 2019-01-23 13:16

To add the missing component, go to Control Panel -> Uninstall a Program, and select to Change the installation of Visual Studio. Then, here is the option you need to check: enter image description here Then press "Modify".

Also don't forget to update the project's Properties to be using Windows SDK version 10.0.17134.0. enter image description here

查看更多
登录 后发表回答