compiler error C1083 for windows.h

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
pmgrace
In need of some credit
In need of some credit
Posts: 6
Joined: Sun Dec 10, 2006 9:33 pm

compiler error C1083 for windows.h

Post by pmgrace »

Hi

I am getting the following compiler error when I compile with VC 2015 and SDK for windows 10:

c:\wxwidgets-3.0.2\src\png\pngpriv.h(373): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

I use DialogBlocks to run the compiling on a Windows 8.1 computer.

Has anyone any ideas why this is happening? Many thanks!

Patrick Grace
User avatar
ColleenKobe
Earned some good credits
Earned some good credits
Posts: 109
Joined: Mon Aug 31, 2015 3:47 pm

Re: compiler error C1083 for windows.h

Post by ColleenKobe »

I realize this posting is a year and a half old, but I thought I would answer anyway.

The error message is telling you that wxWidgets needs windows.h to compile your program, but wxWidgets can't find windows.h. My guess is that windows.h resides somewhere on your computer, but in a directory that wxWidgets is not looking in.

Here is what Microsoft says about missing a file in general: https://msdn.microsoft.com/en-us/library/et4zwx34.aspx Check your search path.

This article may be more useful: https://github.com/curl/curl/issues/454

Close to the end of the page, it says that the system files should be installed in C:\Program Files (x86)\Windows Kits\10

I hope this helps.
Post Reply