No compiler was found!

Hello Guys,
I am new at Unreal Engine. I have seen an error for the last two days. The error is “No compiler was found. In order to use a C++ template, you must first install Visual Studio 2017”. However, I have already had both UE4 and VS2017 included Game Development with C++ component.

I have seen lots of questions same as me in the answer hub but couldn’t find any appropriate solution.

I’m using UE 4.19 and VS2017.

What I did

  1. I uninstalled both VS2017 and UE4 then i re-installed them.
  2. I add a regedit file called 15.0 in HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\SxS\VC7 the value is C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC.
  3. I verified the engine.
  4. I also add new Environment Variable called VS150COMNTOOLS and set value C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools
  5. I change the ToolChain and Source Code setting in Engine.

I did these steps and couldn’t solve it. I’m stuck with the error. I don’t know what should i do? Can you help me, guys?

Thank you for your answers :slight_smile:

forgive me if it seems odd to ask, but it never hurts to check:

  • If you click that “install visual studio” button and do actually run the installer, does it fix it? (this may update / refresh / reinstall some missing parts)

  • Did visual studio definitely install the correct Windows SDK

  • Did the original installation definitely install the MSVC compiler?

  • Have you turned your computer off and on again (no, seriously, sometimes registry keys and installs do not update until you reboot, and windows 10 does not actually cold-boot with a default shutdown I’ve seen industry veterans lose hours simply because they “pressed the power button” and didn’t understand sleep-mode was a thing.

  • have you tried right clicking on your Uproject in windows explorer, selecting generate Visual studio solution - then actually opening up said solution via visual-studio manually

Hello DarthPJB,
Thank you for your answers :slight_smile: but i still have the problem. :frowning:

  • When i clicked the button, VS Installer shows up and like this

  • I also rebbot my computer tons of times :frowning:
  • I did your last suggestion and I face an error like this

*Running C:/Program Files/Epic Games/UE_4.19/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“E:/UE4 Projects/Udemy/SimpleFPSTemplate-master/SimpleFPSTemplate-master/FPSGame.uproject” -game -rocket -progress
Discovering modules, targets and source code for project…
WARNING: Visual Studio C++ 2017 installation not found - ignoring preferred project file format.
WARNING: Exception while generating include data for UE4Editor: Visual Studio 2017 must be installed in order to build this target.
Binding IntelliSense data… 0%@progress ‘Binding IntelliSense data…’ 50%
WARNING: Exception while generating include data for FPSGameEditor: Visual Studio 2017 must be installed in order to build this target.
Binding IntelliSense data… 50%@progress ‘Binding IntelliSense data…’ 100%
ERROR: UnrealBuildTool Exception: Visual Studio 2015 must be installed in order to build this target.
*

The error said that you must install VS2017 but I have already had VS2017 and the last error said that You must install VS2015 do i have to install VS2015?

I really don’t understand what should i do? :frowning:

Hello DarthPJB,
I have a new progression. I install VC++ 2015 Toolset and when i generate uproject, it works but I can’t create new C++ class. Lastly, I still have the same error and can’t create new C++ project in UE.

this is extremely strange and leads me to believe something has been corrupted in the install of visual studio, it may be repaired if uninstalled completely and reinstalled.
However I’m afraid I’m not sure how much help I can be.

Hello guys,
I solved the problem finally. Thanks god.:slight_smile: I open the “Visual Studio Installer” and run “Repair” mode, then the problem has been disappeared. I’m very happy right now. Thank you for your help guys :slight_smile:

Glad I could help!