# Another "Cannot open include file: "XXX.generated.h". No such file or directory" error

**URL:** <https://forums.unrealengine.com/t/another-cannot-open-include-file-xxx-generated-h-no-such-file-or-directory-error/472462>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [October 5, 2020, 7:11pm UTC](https://forums.unrealengine.com/t/another-cannot-open-include-file-xxx-generated-h-no-such-file-or-directory-error/472462 "2020-10-05T19:11:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rayunforsaken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rayunforsaken](https://forums.unrealengine.com/u/rayunforsaken)\
**Post date:** [October 5, 2020, 7:11pm UTC](https://forums.unrealengine.com/t/another-cannot-open-include-file-xxx-generated-h-no-such-file-or-directory-error/472462/1 "2020-10-05T19:11:26Z")

</div>

I’ve tried everything I could think of and find on the forums. The specific error I’m getting is

> fatal error C1083: Cannot open include  
> file: ‘USEdEngine.generated.h’: No  
> such file or directory

There is definitely such a file, and it’s being updated/generated properly at

> Intermediate\Build\Win64\UE4Editor\Inc\USEditor

I’ve recently downloaded the zip of 4.26 from git, upgrading from 4.22.2. I have another editor module deriving from this USEditor, but that one doesn’t have the issue.

List of things I’ve tried:

- Adding a search path in NMake, which was a 4.20 solution ([VS cannot find generated.h files - C++ - Epic Developer Community Forums](https://answers.unrealengine.com/questions/810626/vs-cannot-find-generatedh-files.html))
- Delete all the temp stuff (Intermediate, .vs, Saved, etc.), full clean and rebuild
- Editing the header file, saving, building again
- Rebuilding again, and again, and again
- I also tried to rename the class/file, same thing

---

<div class="post-metadata">

**Author:** ![rayunforsaken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rayunforsaken](https://forums.unrealengine.com/u/rayunforsaken)\
**Post date:** [October 8, 2020, 6:22am UTC](https://forums.unrealengine.com/t/another-cannot-open-include-file-xxx-generated-h-no-such-file-or-directory-error/472462/2 "2020-10-08T06:22:34Z")

</div>

Solved this by adding a missing module include (PrivateDependencyModuleNames).
