# Error LNK2019: unresolved external symbol "\_\_declspec(dllimport) class UEnum \*

**URL:** <https://forums.unrealengine.com/t/error-lnk2019-unresolved-external-symbol-declspec-dllimport-class-uenum/491619>\
**Category:** Platform & Builds\
**Tags:** c-build, unreal-engine, question\
**Created:** [December 5, 2021, 11:46am UTC](https://forums.unrealengine.com/t/error-lnk2019-unresolved-external-symbol-declspec-dllimport-class-uenum/491619 "2021-12-05T11:46:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chronos2010](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chronos2010](https://forums.unrealengine.com/u/Chronos2010)\
**Post date:** [December 5, 2021, 11:46am UTC](https://forums.unrealengine.com/t/error-lnk2019-unresolved-external-symbol-declspec-dllimport-class-uenum/491619/1 "2021-12-05T11:46:03Z")

</div>

![353558-error-lnk2019.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/6/a3687b1ef6e5aa59dafc8fc0ac0ff878e0ca8309.png)

When i write this code it throws an error…May someone know?how to fix this error??

**My include files:**  
_#include “Chaos/ChaosEngineInterface.h”  
 #include “Containers/EnumAsByte.h”  
 #include “Kismet/GameplayStatics.h”  
 #include “Kismet/KismetSystemLibrary.h”  
 #include “PhysicsSettingsCore.h”_

and thats no helps me=\

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [December 5, 2021, 1:20pm UTC](https://forums.unrealengine.com/t/error-lnk2019-unresolved-external-symbol-declspec-dllimport-class-uenum/491619/2 "2021-12-05T13:20:38Z")

</div>

Hello! According to refs ([EPhysicalSurface | Unreal Engine Documentation](https://docs.unrealengine.com/4.27/en-US/API/Runtime/PhysicsCore/Chaos/EPhysicalSurface/)) you should include **PhysicsCore** module to Build.cs.

---

<div class="post-metadata">

**Author:** ![Chronos2010](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chronos2010](https://forums.unrealengine.com/u/Chronos2010)\
**Post date:** [December 5, 2021, 1:39pm UTC](https://forums.unrealengine.com/t/error-lnk2019-unresolved-external-symbol-declspec-dllimport-class-uenum/491619/3 "2021-12-05T13:39:28Z")

</div>

oh man,you are awesome!! it’s a really working!! thx for help!!)
