Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 :

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 ....

like image 388
M.Hamza Al Omari Avatar asked Feb 15 '17 19:02

M.Hamza Al Omari


3 Answers

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

like image 57
Ynon Avatar answered Oct 09 '22 15:10

Ynon


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

like image 10
Michael Haephrati Avatar answered Oct 09 '22 16:10

Michael Haephrati


Right click on your solution or project in the solution explorer & Retarget your solution or project to the installed SDK version

like image 6
ej8000 Avatar answered Oct 09 '22 16:10

ej8000