# UWidgetBlueprintLibrary linking error

**URL:** <https://forums.unrealengine.com/t/uwidgetblueprintlibrary-linking-error/302034>\
**Category:** UI\
**Tags:** modules, unreal-engine, question, linking-error, UMG\
**Created:** [December 19, 2014, 12:50pm UTC](https://forums.unrealengine.com/t/uwidgetblueprintlibrary-linking-error/302034 "2014-12-19T12:50:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![undercover](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@undercover](https://forums.unrealengine.com/u/undercover)\
**Post date:** [December 19, 2014, 12:50pm UTC](https://forums.unrealengine.com/t/uwidgetblueprintlibrary-linking-error/302034/1 "2014-12-19T12:50:13Z")

</div>

Hi!

I get a linking error when I try to call `UWidgetBlueprintLibrary::SetInputMode_UIOnly`. I have the “UMG”, “Slate” and “SlateCore” modules added in the build file. Is some module missing?

Or where can I find all modules available? Does it exist such documentation?

It works for `UUserWidget` which seems to even be in the same folders as `UWidgetBlueprintLibrary`?

Error message:

```
Error	24	error LNK2019: unresolved external symbol "public: static void __cdecl UWidgetBlueprintLibrary::SetInputMode_UIOnly(class APlayerController *,class UWidget *,bool)" (?SetInputMode_UIOnly@UWidgetBlueprintLibrary@@SAXPEAVAPlayerController@@PEAVUWidget@@_N@Z)
```

---

<div class="post-metadata">

**Author:** ![BingoBongo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BingoBongo](https://forums.unrealengine.com/u/BingoBongo)\
**Post date:** [March 8, 2015, 9:00am UTC](https://forums.unrealengine.com/t/uwidgetblueprintlibrary-linking-error/302034/2 "2015-03-08T09:00:28Z")

</div>

Hi. I’m have same error from here [barisatamer](http://www.barisatamer.com/button-with-release-event/) (from here [[UMG] Button Press & Release - UI - Unreal Engine Forums](https://answers.unrealengine.com/questions/115718/umg-button-press-release.html) )

---

<div class="post-metadata">

**Author:** ![undercover](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@undercover](https://forums.unrealengine.com/u/undercover)\
**Post date:** [March 13, 2015, 12:43pm UTC](https://forums.unrealengine.com/t/uwidgetblueprintlibrary-linking-error/302034/3 "2015-03-13T12:43:37Z")

</div>

Sorry for the delay, have been busy lately.

Not sure what the problem is, can’t really see any differences in the example. I basically ended up coping the code and compiled it myself. Not an ideal solution when it gets updated but maybe it will work in some future update out of the box.

---

<div class="post-metadata">

**Author:** ![NickDarnell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NickDarnell](https://forums.unrealengine.com/u/NickDarnell)\
**Post date:** [April 10, 2015, 2:58pm UTC](https://forums.unrealengine.com/t/uwidgetblueprintlibrary-linking-error/302034/4 "2015-04-10T14:58:24Z")

</div>

Those blueprint libraries were not exported from the DLL, so you can’t link against them. I’m changing them for 4.8 to be exported.

---

<div class="post-metadata">

**Author:** ![undercover](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@undercover](https://forums.unrealengine.com/u/undercover)\
**Post date:** [April 10, 2015, 3:35pm UTC](https://forums.unrealengine.com/t/uwidgetblueprintlibrary-linking-error/302034/5 "2015-04-10T15:35:57Z")

</div>

Okay, sounds good. Thanks!

---

<div class="post-metadata">

**Author:** ![virgilioneto](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@virgilioneto](https://forums.unrealengine.com/u/virgilioneto)\
**Post date:** [December 4, 2020, 2:52pm UTC](https://forums.unrealengine.com/t/uwidgetblueprintlibrary-linking-error/302034/6 "2020-12-04T14:52:46Z")

</div>

Almost one year later but I’m starting with C++ in UE4 and got this error today.  
Looking arround the web, I found a forum post about FReply and the solution was to add SlateCore to the public dependency on Build.cs

> You need to add “SlateCore” to PublicDependencyModuleNames in Build.cs of your project.

But in this case, the module isn’t **SlateCore** but **UMG**

Here is my example of Project.Build.cs

```
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "UMG" });

```

**Forum post** : [https://forums.unrealengine.com/development-discussion/c-gameplay-programming/1703185-freply-unresolved](https://forums.unrealengine.com/development-discussion/c-gameplay-programming/1703185-freply-unresolved)

---

<div class="post-metadata">

**Author:** ![undercover](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@undercover](https://forums.unrealengine.com/u/undercover)\
**Post date:** [June 28, 2021, 9:11am UTC](https://forums.unrealengine.com/t/uwidgetblueprintlibrary-linking-error/302034/7 "2021-06-28T09:11:04Z")

</div>

Before 4.8, the method was not exported, so that you couldn’t link against it.
