# AIPerception error

**URL:** <https://forums.unrealengine.com/t/aiperception-error/462053>\
**Category:** Community & Industry Discussion\
**Tags:** error, dll, aiperception, unreal-engine, question\
**Created:** [March 3, 2020, 7:08pm UTC](https://forums.unrealengine.com/t/aiperception-error/462053 "2020-03-03T19:08:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Remboo18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Remboo18](https://forums.unrealengine.com/u/Remboo18)\
**Post date:** [March 3, 2020, 7:08pm UTC](https://forums.unrealengine.com/t/aiperception-error/462053/1 "2020-03-03T19:08:30Z")

</div>

When I try to create an AIPerceptionComponent [aiPerception = CreateDefaultSubobject (TEXT (“AiPerception”));] I receive the error [enemy.cpp.obj: error LNK2019: unresolved external symbol "\_\_declspec (dllimport) private: staticclass UCl classc UAIPerceptionComponent :: GetPrivateStaticClass (void) “(\__imp_? GetPrivateStaticClass @ UAIPerceptionComponent @@ CAPEAVUClass @@ XZ) referenced in function” public: \_\_cdecl Aenemy :: Aenemy (void) "(?? 0Aenemy @@ QEAA @ XZ).]  
If I just try to enter it in .h I don’t get an error [class UAIPerceptionComponent \* aiPerception;]. I hope you can help me.

---

<div class="post-metadata">

**Author:** ![TheKaosSpectrum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheKaosSpectrum](https://forums.unrealengine.com/u/TheKaosSpectrum)\
**Post date:** [March 3, 2020, 11:49pm UTC](https://forums.unrealengine.com/t/aiperception-error/462053/2 "2020-03-03T23:49:13Z")

</div>

missing AIModule from your ProjectName.build.cs

Add it the PublicDependencyModules.

> **[Modules](https://docs.unrealengine.com/4.27/en-US/ProductionPipelines/BuildTools/UnrealBuildTool/ModuleFiles/)**
>
> An overview of UBT Modules, including property descriptions.

Hope tis helps

---

<div class="post-metadata">

**Author:** ![Remboo18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Remboo18](https://forums.unrealengine.com/u/Remboo18)\
**Post date:** [March 4, 2020, 7:15pm UTC](https://forums.unrealengine.com/t/aiperception-error/462053/3 "2020-03-04T19:15:57Z")

</div>

Tnx for answer, but I don’t know where to include and how. I recently switched from blueprints to c++ (I know unity c # better)și încerc să învăț asta. Maybe you can explain it to me in more detail.

---

<div class="post-metadata">

**Author:** ![Remboo18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Remboo18](https://forums.unrealengine.com/u/Remboo18)\
**Post date:** [March 5, 2020, 8:29pm UTC](https://forums.unrealengine.com/t/aiperception-error/462053/4 "2020-03-05T20:29:04Z")

</div>

You right, thank you for help.
