Basic C++ template does not compile

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:

  1. Create the project from template, if UE tells you it failed to compile, open the project with VS.
  2. Wait until VS finishes trying to build it if this is the case.
  3. Right-click on the project (inside solution explorer) > Properties.
  4. Click on Include Directories and, in the dropdown choose ``, check it adds something like $(VC_IncludePath);$(WindowsSDK_IncludePath);.
  5. Do the same for Library Directories. It should be something like $(VC_LibraryPath_x64);$(WindowsSDK_LibraryPath_x64);.

For both Include Directories and Library Directories, if you click on * instead of *, you should see at the bot side those inherited path roots.

Hope this helps someone.

Best Regards