What is that? Can't create any classes

Did you name you project only ‘Test’ (caseinsensitive)?

It may be a very specific question, but this prevented me from creating C++ code…

If you did so, try giving your project another name (e.g. ‘MyProject’ or ‘TestProject’)

Good luck!


I’m new to UE4 and I can’t get to start to learn C++, because this is always shown if I want to create a class…

In this example I wanted to create the sampleclass MyClass and it failed…

The showen window told me this:

Failed to add class MyClass. Failed to automatically compile the ‘ArchiTec’ module.

I can’t figure it out!

Pls help!! tks

I’ve noticed some odd functionality in adding a class from the editor. It will say it has failed with the error you specified, but it actually adds the class correctly. It fails to compile because the generated include is incorrect.

#include “MyGame.h” should be MyGamePrivate.h

This may only apply to private classes. But manually fixing the include has worked for me.

ok… in fact that means, that I will find the scripts in my project by opening visual studio?

and what do u mean with the specification “private”?

also I can’t find any script in my project?! how to use them then?

is there a second way how to add scripts manually correctly?

and that happens if I want to create a sample project with c++

The project failed to compile with this version of the engine. Build output is as follows:

Running D:/Epic Games/4.7/Engine/Binaries/DotNET/UnrealBuildTool.exe Tesst Development Win64 -project=“D:/Unreal Engine 4 - Projekte/Tesst/Tesst.uproject” -rocket -editorrecompile -progress
Parsing headers for TesstEditor
Reflection code generated for TesstEditor
Performing 10 actions (4 in parallel)
[3/10] Resource Tesst.rc
[2/10] Resource ModuleVersionResource.rc.inl
D:\Epic Games\4.7\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3) : fatal error RC1015: cannot open include file ‘windows.h’.

D:\Unreal Engine 4 - Projekte\Tesst\Source\Tesst\Resources\Windows\Tesst.rc(8) : fatal error RC1015: cannot open include file ‘windows.h’.

D:\Epic Games\4.7\Engine\Source\Runtime\Core\Public\HAL\PlatformIncludes.h(5) : fatal error C1083: Cannot open include file: ‘new’: No such file or directory
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: D:\Unreal Engine 4 - Projekte\Tesst\Binaries\Win64\UE4Editor-Tesst.dll
Cumulative action seconds (4 processors): 0,00 building projects, 0,88 compiling, 0,00 creating app bundles, 0,00 generating debug info, 0,00 linking, 0,00 other
UBT execution time: 14,25 seconds


omg such a crap…

I just downloaded version 4.5.1 and it works for me :wink: glad of about that :smiley: