UE4 throwing error "No compiler was found..."

The full error is “No compiler was found. In order to use a C++ template, you must first install Visual Studio 2013,” there is an image attached. Although I already have Visual Studio 2013 installed. I’ve looked at multiple threads that are asking the same question, but none of the answers have worked for me. I already have set my environment variable “VS120COMNTOOLS” to "C:\Program Files(x86)\Microsoft Visual Studio 12.0\Common7\Tools"

In case you are wondering why I am using the older version of UE4, 4.1.2, it is because I thought that it would resolve my errors with Visual Studio in 4.7.6.

My system specs, if needed are:
Graphics Card- NVIDIA GeForce GTX 750

RAM- 16GB

Processor- Intel(R) Core™ i5-4690 CPU @ 3.50GHz

OS- Windows 8.1

UE4 version- 4.1.2

Hey CoolKidsOnly-

Do you receive the same error warning when trying to create a code project in another engine version? If so you may want to try reinstalling VS. Also, what errors are you getting with VS in 4.7.6?

Cheers

When I try to create a C++ file in version 4.7.6, it would come up with a similar error, but after all the code was built, the engine would say build failed, open with Visual Studio.

When I went into a project with 4.7.6 (basic and blueprint,) the button located at file->add code to project was not grayed out, although when I clicked on it, it would not let me create a class.

When I am in 4.1.2 after launching it through a blueprint basic project, the file->add code to project is grayed out.

I have re-installed both the engine and Visual Studio 2013 multiple times.

Do you have multiple versions of Visual Studio on your computer? If so remove all but 2013 and try again. Additionally you may want to install VS on your C: drive if it is not.

Ok, will do.

Hi CoolKidsOnly,

I just wanted to check and see if you still need any help with this issue. Were you able to get everything working after trying 's suggestions?

Hi CoolKidsOnly,

We haven’t heard from you in a while. Were you able to solve your issue? If so, please share how you were able to resolve it for future users. In the meantime, I’ll be setting this issue to resolved for tracking purposes. If you still require assistance, please feel free to comment and the question will reopen.

Have a nice day

I have the same problem. I didn’t have VS and then I downloaded it when I was making a new c++ class. So I waited and then refreshed, but it was still saying there was no compiler.

Have you tried restarting your computer since installing Visual Studio? What version of Visual Studio did you install? What version of the editor are you using? Do you get exactly the same message saying that there is no compiler found or do you get something else?

I downloaded vs 2015, I am using ue 4.14.3 and I did get the same error. I didn’t try restarting though.

Have you tried restarting to see if that helped?

Hello, I am having the same error, except on UE4 4.15 and with VS 2017 freshly installed. Was a fix ever determined?

Hello Hyperion Rising,

RatBoiToy never came back so I’m not sure if he was able to resolve his issue. If you’re using 2017, have you selected Visual Studio 2017 in your project settings under Platform > Window > Toolchain > Compiler Version?