Basic C++ template does not compile
Hello there. I'm trying to setup VS2013 and UE4 to start developing using a basic C++ template but I can't get it running properly...
I can create a new project from Blueprints and it runs, so it should not be a problem of UE installation. But when I try to create a new project from C++ template, UE4 says there was an error while compiling and lets me open it with VS. When I try to build it from VS it throws me that error:
I've removed every Visual Studio program and folder (from
I reinstalled VS2013 Community directly from Microsoft's webpage, and also did it from UE4 launcher (when you try to create a new project from C++ templates it checks if you have VS and, if not, tells you to install it). When I installed VS I did not choose to install Windows Phone SDK, SQL for Visual Studio, Microsoft App helper and other optional stuff it lets you install.
EDIT: I reinstalled Epic Games Launcher (and, of course, UE4) cleaning the registry and deleting all folders related under Program Files. Still doesn't work.
I don't know why it can't find 'windows.h' and haven't found any effective solution anywhere. Thanks in advance to anyone who can help me.
Ok, so after some hours of googling and tons of lines read later, I got the solution. I haven't been able to check if the editor works well, but at least now it compiles from VS and runs UE Editor.
The solution is this:
Hope this helps someone.
answered May 20 '15 at 01:06 PM
Have you installed Windows 8.1 SDK?
If this still does not work, try re-installing UE4 - Sometimes UE4 fails to detect 8.1 SDK if it was installed later.
answered May 20 '15 at 02:57 AM
this happened to me, because i installed msvs AFTER making a BP project. after making a source file C++ class inside my bp project, i deleted saved and intermediates from the bp project. after deleting data and cooked info it worked for me. 4.8.13 here 3/22/2018. 5 am
Follow this question
Once you sign in you will be able to subscribe for any updates here