# Learning-Agents with C++ in UE 5.7.1 LearningAgentsPPOTrainer derived class will not build

**URL:** <https://forums.unrealengine.com/t/learning-agents-with-c-in-ue-5-7-1-learningagentsppotrainer-derived-class-will-not-build/2687493>\
**Category:** C++\
**Tags:** unreal-engine, Learning-Agents, CPP, question\
**Created:** [December 24, 2025, 8:35pm UTC](https://forums.unrealengine.com/t/learning-agents-with-c-in-ue-5-7-1-learningagentsppotrainer-derived-class-will-not-build/2687493 "2025-12-24T20:35:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![theseus2703](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theseus2703](https://forums.unrealengine.com/u/theseus2703)\
**Post date:** [December 24, 2025, 8:35pm UTC](https://forums.unrealengine.com/t/learning-agents-with-c-in-ue-5-7-1-learningagentsppotrainer-derived-class-will-not-build/2687493/1 "2025-12-24T20:35:31Z")

</div>

Hello and merry chistmas 😛

I was creating a new blank C++ Project in UE 5.7.1 and enabled the Learning-Agents Plugin.

When i tried to add a C++ class with parent class **LearningAgentsPPOTrainer** , the class won’t build.

Error log of UE shows that an include statement cannot be resolved.

E:\Program Files\Epic Games\UE\_5.7\Engine\Plugins\Experimental\LearningAgents\Source\LearningAgentsTraining\Public\LearningAgentsTrainer.h(5,1): fatal error C1083: Cannot open include file: ‘ **LearningTrainer.h** ’: **No such file or directory**

The “missing” file seems to be part of another directory in the LearningAgents plugin folder. I dont know much about the correct usage of the Build.cs files in those directories, but as far as i can see it, the “LearningTraining” Module, which holds the “unfindable” file, is included in the PrivateDependencyModuleNames of the “LearningAgentsTraining” module, where the error message originates from, so should work ?

I tried messing with the Build.cs files to achieve something but i was not sucessfull, building in Visual Studio with F7.

I dont know how to proceed at this point and would appreciate any help.

---

<div class="post-metadata">

**Author:** ![theseus2703](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theseus2703](https://forums.unrealengine.com/u/theseus2703)\
**Post date:** [December 24, 2025, 9:14pm UTC](https://forums.unrealengine.com/t/learning-agents-with-c-in-ue-5-7-1-learningagentsppotrainer-derived-class-will-not-build/2687493/2 "2025-12-24T21:14:03Z")

</div>

Hello, i just found a solution myself, I was just adding “LearningTraining” to the **PrivateDependencyModuleNames** in my projects **Build.cs.**

I dont know if it’s a workaround or the supposed way to do it, but it works anyway.

bye
