# UnrealEdEngine - extending bug

**URL:** <https://forums.unrealengine.com/t/unrealedengine-extending-bug/361565>\
**Category:** C++\
**Tags:** bug, unreal-engine, editor, UE4, CPP, question\
**Created:** [June 21, 2016, 1:46pm UTC](https://forums.unrealengine.com/t/unrealedengine-extending-bug/361565 "2016-06-21T13:46:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_1d9c3aac](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1d9c3aac](https://forums.unrealengine.com/u/anonymous_user_1d9c3aac)\
**Post date:** [June 21, 2016, 1:46pm UTC](https://forums.unrealengine.com/t/unrealedengine-extending-bug/361565/1 "2016-06-21T13:46:37Z")

</div>

Currently, when a new **UUnrealEdEngine** C++ child class is created, created file links to

```
#include "Editor/UnrealEdEngine.h"

```

However this include causes a bunch of errors while compiling, starting with base class undefined, plus a few thousand lines more.

```
UnrealEdEngine.h(89): error C2504: 'UEditorEngine': base class undefined

```

Replacing the include with this one solves the compile problem:

```
#include "UnrealEd.h"

```

The editor runs, and code works as expected.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [June 21, 2016, 7:00pm UTC](https://forums.unrealengine.com/t/unrealedengine-extending-bug/361565/2 "2016-06-21T19:00:55Z")

</div>

Hey emrahgunduz-

Thank you for pointing this out. I have entered report UE-32312 to investigate this behavior and have included the “include” fix you mentioned.

Cheers
