Error windows.h by creating c++ project.

[FONT=Arial Black]FIX

You need to add “[COLOR=”#FF0000"]C:\Windows\System32;C:\Windows\SysWOW64" to your path.[/COLOR]

Realy thanks to Camron!

I have a problem with making a c++ projects.

-Hello,

  • I can make blueprint projects.
  • But no C++ projects.
  • When i try to make a c++ project, i get this error.

Running D:/EpicGames/Epic
Games/4.8/Engine/Binaries/DotNET/UnrealBuildTool.exe
NewProject Development Win64
-project="D:/User Folder/Documenten/Unreal
Projects/NewProject/NewProject.uproject"
-rocket -editorrecompile -progress -noubtmakefiles Parsing headers for NewProjectEditor Reflection code
generated for NewProjectEditor
Performing 7 actions (4 in parallel)
[2/7] Resource
ModuleVersionResource.rc.inl [3/7]
Resource PCLaunch.rc
D:\EpicGames\Epic
Games\4.8\Engine\Source\Runtime\Launch\Resources\Windows\PCLaunch.rc(10)
: fatal error RC1015: cannot open
include file 'windows.h'.
D:\EpicGames\Epic
Games\4.8\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3)
: fatal error RC1015: cannot open
include file 'windows.h'.
PCH.NewProject.h.cpp
D:\EpicGames\Epic
Games\4.8\Engine\Source\Runtime\Core\Public\HAL\PlatformIncludes.h(5)
: fatal error C1083: Cannot open
include file: 'new': No such file or
directory
-------- End Detailed Actions Stats ----------------------------------------------------------- ERROR: UBT ERROR: Failed to produce
item: D:\User
Folder\Documenten\Unreal
Projects\NewProject\Binaries\Win64\UE4Editor-NewProject.dll
Total build time: 30,22 seconds

I tried:

  • Reinstalling UE4
  • Reinstalling Visual studio 2013
  • My windows name does not have special
    letters

All the errors im getting are:

  • RC1015

  • C1083

  • I hope someone can help me!

.

  • So, Thank you!

Hi Potato, I’m not sure I can help you very much, as it works fine on my end. A few things you could try though:

Do those files actually exist (Ie, windows.h) ?

If they do exist, then the only things I can think of that may be causing the errors would be not having access or administrator privileges to those folders.

Another thing you could try is right click on the uproject file -> rebuild visual studio files. Then open the .sln file and compilie it via visual studio before opening the uproject file.

Well i have looked everywhere in my pc, and i did not find windows.h

But still thanks! :smiley:

Well install the C++ compiler and the Windows SDK (or Platform SDK or how they are calling it now) with VS 2013.

Try to install this or a newer version: https://www.microsoft.com/en-us/download/details.aspx?id=8279

Is there a Windows 8 version?

Ya. Though if you googled it you would have it installed by now :wink:

https://msdn.microsoft.com/en-us/windows/desktop/bg162891.aspx

Im sorry i did not found it. Lets try it :smiley:

Well i tried c++ compiler and windows SDK. still not working.

Try AusPaco’s suggestion again.

Not working :smiley: Hard life :smiley:

You will probably be better off asking this question on AnswerHub. None of us have experienced the issues you are.

Yes i asked it already on answerhub but but nobody responds. :smiley: https://answers.unrealengine.com/questions/245717/error-windowsh-by-creating-c-project.html

Try some of the steps listed here.

Still not working. hard life :smiley:

I had something like this the other day. I think it was either from bad code that threw the UE4 macros off, or I had to do this fix.

Click those errors in Visual Studio to be brought to the allegedly missing includes. Then right click the include and do open. You probably do have the files but are running into some configuration errors (need to change all include dirs to “inherit from parent”).

I found a real fix (the “inherit from parent” fix is hacky and breaks later on). Somehow “C:\Windows\System32” was removed from my PATH. I added “C:\Windows\System32;C:\Windows\SysWOW64” and everything seems to work so far. See if this works for you too.

WOW WOW WOW!!! :smiley: THANKS!!! Its working now! I can not thank you enough! Realy thanks! :smiley: Thanks!

@PotattoDay: Please update your AnswerHub post with the fix above from Camron, so that others can learn from you two. Thanks. 8-}

What a crazy solution. How did you find out that this was the culprit? It wouldn’t ever have occured to me to look at if the system folders are in path!