# cannot open header added with editor

**URL:** <https://forums.unrealengine.com/t/cannot-open-header-added-with-editor/477870>\
**Category:** Community & Industry Discussion\
**Tags:** include, unreal-engine, CPP, question\
**Created:** [January 27, 2021, 5:55pm UTC](https://forums.unrealengine.com/t/cannot-open-header-added-with-editor/477870 "2021-01-27T17:55:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![furyhunter222](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@furyhunter222](https://forums.unrealengine.com/u/furyhunter222)\
**Post date:** [January 27, 2021, 5:55pm UTC](https://forums.unrealengine.com/t/cannot-open-header-added-with-editor/477870/1 "2021-01-27T17:55:58Z")

</div>

hi

I added Class ActorBase in new folder named Actors.  
After compile, error occurs and I can’t see new file in browser

complie logs are below.

```
CompilerResultsLog: Building 4 actions with 12 processes... CompilerResultsLog: [1/4] ActorBase.cpp CompilerResultsLog: D:\WORK\MyProject\Source\MyProject\Actors\ActorBase.cpp(4): fatal error C1083: cannot open include file: 'Actors/ActorBase.h': No such file or directory LogMainFrame: MainFrame: Module compiling took
17.922 seconds Warning: HotReload failed, recompile failed Warning: RebindPackages failed because compilation failed.

```

ActorBase.cpp file’s here

```
#include "Actors/ActorBase.h"

```

I fixed it like

```
#include "ActorBase.h" 

```

and the compile succeeded.

What’s wrong with this?  
I think directory may not be problem, why that is unnecessary?

Please tell me why this happened and how can I remove auto-added directory in source file, or how the directory doesn’t cause problems.

thanks ahead.

---

<div class="post-metadata">

**Author:** ![uced](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uced](https://forums.unrealengine.com/u/uced)\
**Post date:** [July 18, 2022, 9:46pm UTC](https://forums.unrealengine.com/t/cannot-open-header-added-with-editor/477870/2 "2022-07-18T21:46:33Z")

</div>

Hi, same problem here, did you find any explanation ?
