# Cannot find generated.h file in other module

**URL:** <https://forums.unrealengine.com/t/cannot-find-generated-h-file-in-other-module/393982>\
**Category:** C++\
**Tags:** modules, unreal-engine, generated, UE4, question, CPP\
**Created:** [May 18, 2017, 8:30pm UTC](https://forums.unrealengine.com/t/cannot-find-generated-h-file-in-other-module/393982 "2017-05-18T20:30:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_0a5b4a31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0a5b4a31](https://forums.unrealengine.com/u/anonymous_user_0a5b4a31)\
**Post date:** [May 18, 2017, 8:30pm UTC](https://forums.unrealengine.com/t/cannot-find-generated-h-file-in-other-module/393982/1 "2017-05-18T20:30:02Z")

</div>

I have two modules set up. Module “A” calls a class that exists in module “B”. In that class’s header file it calls another header file. Inside this header file it fails to find the generated.h file even though both directories for the modules exist in the NMAKE include search path.

Any suggestions on how to get the UE4 build tool to recognise the existence of the generated.h file?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0a5b4a31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0a5b4a31](https://forums.unrealengine.com/u/anonymous_user_0a5b4a31)\
**Post date:** [May 18, 2017, 8:58pm UTC](https://forums.unrealengine.com/t/cannot-find-generated-h-file-in-other-module/393982/2 "2017-05-18T20:58:42Z")

</div>

Answer provided here:

> **[How to point visual studio to "LandscapeInfo.generated.h"?](https://forums.unrealengine.com/questions/153064/how-to-point-visual-studio-to-landscapeinfogenerat.html)**
>
> i have added all c++ source code from VehicleGame (4.5) to my own project. now i am getting error for this line #include “LandscapeInfo.generated.h” which actually located here: ...

Add your module to the PublicDependencyModuleNames part of the Build.cs file of module “A”.
