Cannot open stdio.h file

I have updated Visual Studio from Community 2015 to Community 2017. Now when I build, I get error messages: "Error (active)" E1696 cannot open source file "stdio.h". The related line looks like this:

#include <stdio.h>

      

If I create a new project stdio.h is found.

So I looked at the Project Configuration Properties -> VC ++ Directories and I see the following:

Include Directories  $(VC_IncludePath);$(WindowsSDK_IncludePath);

      

So it seems like VC_IncludePath needs to be installed, but I can't seem to find a place to install it. Please note, I cannot find the macro, and it may be because I am using the free version of Visual Studio 2017.

Can someone please make a suggestion?

+3


source to share


1 answer


It looks like the Windows SDK version you are trying to use is not installed on your PC. You should check your project's SDK version used (in properties), which can be changed to 10.0.14393.0



Alternatively you can run the Visual Studio installer again and click Change in VS17 version, go to Advanced and check if the required SDK is checked. If you do not mark it and install.

+9


source







All Articles