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?
- 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
- When I try to install C++ for visual studio 2015