# Unresolved external symbol UUserWidget

**URL:** <https://forums.unrealengine.com/t/unresolved-external-symbol-uuserwidget/382917>\
**Category:** Pipeline & Plugins\
**Tags:** unresolved-external-, unreal-engine, Visual-Studio, UE4, question, CPP\
**Created:** [January 25, 2017, 1:07pm UTC](https://forums.unrealengine.com/t/unresolved-external-symbol-uuserwidget/382917 "2017-01-25T13:07:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dreinzy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dreinzy](https://forums.unrealengine.com/u/dreinzy)\
**Post date:** [January 25, 2017, 1:07pm UTC](https://forums.unrealengine.com/t/unresolved-external-symbol-uuserwidget/382917/1 "2017-01-25T13:07:23Z")

</div>

Hi, I followed [this](http://allarsblog.com/2015/11/05/Converting-BP-Project-To-CPP/) guide for converting my Blueprint project to C++.

All went well until the last step (build Development project in Visual Studio) when I get ‘unresolved external symbol’ errors all related (afaict) to UUserWidget.

[This](https://answers.unrealengine.com/questions/161712/uwidgetcomponentgetuserwidgetobject-lnk-error.html) previous answer talks about removing “MinimalAPI” metadata from WidgetComponent.h, but I cannot find any references to it. Relevant lines in WidgetComponent.h:

```
UCLASS(Blueprintable, ClassGroup="UserInterface", hidecategories=(Object,Activation,"Components|Activation",Sockets,Base,Lighting,LOD,Mesh), editinlinenew, meta=(BlueprintSpawnableComponent) )
class UMG_API UWidgetComponent : public UMeshComponent

```

It also involves editing the engine’s source code, which isn’t ideal.  
One comment by AskNinja says "change UWidgetComponent.h to use the UMG\_API " which I don’t know how to do.  
Any ideas?

Thanks in advance,  
Darren.

Edit: attached error log

---

<div class="post-metadata">

**Author:** ![MisoShiru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MisoShiru](https://forums.unrealengine.com/u/MisoShiru)\
**Post date:** [September 4, 2017, 8:08am UTC](https://forums.unrealengine.com/t/unresolved-external-symbol-uuserwidget/382917/2 "2017-09-04T08:08:16Z")

</div>

It’s possible you needed to add the “UMG” module to your game module’s dependencies. Check out this page near the bottom:

[https://docs.unrealengine.com/latest/INT/Programming/Tutorials/UMG/1/](https://docs.unrealengine.com/latest/INT/Programming/Tutorials/UMG/1/)

I just ran into something similar myself in version 4.17.1 trying to add a UUserWidget \* UProperty.

---

<div class="post-metadata">

**Author:** ![kirby561](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kirby561/32/873641_2.png) [@kirby561](https://forums.unrealengine.com/u/kirby561)\
**Post date:** [December 8, 2022, 8:09am UTC](https://forums.unrealengine.com/t/unresolved-external-symbol-uuserwidget/382917/3 "2022-12-08T08:09:21Z")

</div>

Thanks! This fixed my issue 5 years later 😛
