# Unreal doesn't allow me to create past a certain amount of classes

**URL:** <https://forums.unrealengine.com/t/unreal-doesnt-allow-me-to-create-past-a-certain-amount-of-classes/1690878>\
**Category:** C++\
**Tags:** unreal-engine, bug-report, question, CPP\
**Created:** [February 15, 2024, 4:37pm UTC](https://forums.unrealengine.com/t/unreal-doesnt-allow-me-to-create-past-a-certain-amount-of-classes/1690878 "2024-02-15T16:37:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RagingRey06](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RagingRey06](https://forums.unrealengine.com/u/RagingRey06)\
**Post date:** [February 15, 2024, 4:37pm UTC](https://forums.unrealengine.com/t/unreal-doesnt-allow-me-to-create-past-a-certain-amount-of-classes/1690878/1 "2024-02-15T16:37:19Z")

</div>

Ok, so I’m not new to Unreal engine and I have never had this issue before, and I have worked on projects that have more classes than the one I am currently working on.

So, this is the thing, let’s say I have 5 classes in my projects (of any type ie: actor, game mode etc) I can’t add a 6th class, regardless of what I do. For me to add the new class I will have to remove one of my existing class then it would work, but then I won’t be able to add any class after that.

Someone once had this issue in the past and resolved it by adding a macro to the projects .cpp file but his solution didn’t work for me.[https://forums.unrealengine.com/t/updateresourcew-compile-error-after-adding-eos-sdk/468825/2](https://forums.unrealengine.com/t/updateresourcew-compile-error-after-adding-eos-sdk/468825/2)

 ![Screenshot 2024-02-15 173015](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/9/b59fc2a879f6a7e2435ab65434b2689a67047b58.png)  
Here is a screenshot of the error I receive from the compiler, something about a macro #pragma optimize().  
The Module.UE4\_Atavism.cpp file is a file that’s automatically generated at compile-time to include some subset of the user-created cpp files. The new cpp files I added (that didn’t make the solution compile) is not on this list; however, I’ve tried adding it manually and it gets removed when I compile cause it is automatically generated.  
 ![Screenshot 2024-02-15 173653](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/0/b301cf69157fb994d9d7e3522a3baf15f8a71b25.png)
