Error adding classes, can't compile

Hi. I’m getting this error every time when I add a new class:
“Failed to add class MySpotLight222.cpp. Failed to automatically compile ‘HowTo_PlayerInput’ module”.

The class files are created, but not added to the code in the Unreal Editor.
Furthermore, the compile icon is no longer present in the Unreal Editor as well.

Here’s the output from the compilation:

CompilerResultsLog: New page: Compilation - Mar 11, 2015, 10:19:50 PM
CompilerResultsLog: Info ERROR: Couldn't find target rules file for target 'UE4Editor' in rules assembly 'UE4Editor_EditorRecompileModuleRules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
CompilerResultsLog: Info Location: C:\Users\Pedro Costa\Documents\Unreal Projects\HowTo_PlayerInput\Intermediate\Build\BuildRules\UE4Editor_EditorRecompileModuleRules.dll
CompilerResultsLog: Info Target rules found:
CompilerResultsLog: Info     HowTo_PlayerInput - C:\Users\Pedro Costa\Documents\Unreal Projects\HowTo_PlayerInput\Source\HowTo_PlayerInput.Target.cs
CompilerResultsLog: Info     HowTo_PlayerInputEditor - C:\Users\Pedro Costa\Documents\Unreal Projects\HowTo_PlayerInput\Source\HowTo_PlayerInputEditor.Target.cs
CompilerResultsLog: Info 
LogMainFrame: MainFrame: Module compiling took 0.705 seconds

Any help would be much appreciated, thanks.

Apparently this only happens when I try extending the USpotlight class. Anyone know why?

Are you sure you are compiling the editor in Win64 build mode? As far as I know, it can’t be built in 32 bit.

I wasn’t trying to compile the editor, really. I just created a new empty c++ project, created a class that derived from Spotlight and was trying to compile the code.