Error adding code class to a blueprint project

I added an empty C++ class to a project,

I got these errors:

Successfully added class ‘MyClass1’, however you must recompile the ‘backup’ module before it will appear in the Content Browser. Failed to generate project files.

Would you like to open the Output Log to see more details?

  1. In the logs:

c:\Users\User\Desktop\Project\backup - Copy - Copy - Copy\Game 4.1\Intermediate\Source\backup.Target.cs(6,14) : error CS0101: The namespace ‘<global namespace>’ already contains a definition for ‘backupTarget’
UnrealBuildTool Exception: ERROR: UnrealBuildTool encountered an error while compiling source files
LogVSAccessor: Warning: Cannot add source file ‘C:/Users/User/Desktop/Project/backup - Copy - Copy - Copy/Game 4.1/Source/backup/MyClass1.h’ as it doesn’t belong to a known module

  1. When I try to install C++ for visual studio 2015

help help help

pls help help help

Have you been shifting files around and renaming them? Unreal Engine makes assumptions about the file contents based on the file name and the path it is in. That’s probably why it’s not compiling.