# Linking a DLL in a Plugin

**URL:** <https://forums.unrealengine.com/t/linking-a-dll-in-a-plugin/310547>\
**Category:** Blueprint\
**Tags:** unreal-engine, linking, Blueprint, CPP, question\
**Created:** [March 11, 2015, 9:31pm UTC](https://forums.unrealengine.com/t/linking-a-dll-in-a-plugin/310547 "2015-03-11T21:31:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fresheyeball](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fresheyeball](https://forums.unrealengine.com/u/fresheyeball)\
**Post date:** [March 11, 2015, 9:31pm UTC](https://forums.unrealengine.com/t/linking-a-dll-in-a-plugin/310547/1 "2015-03-11T21:31:10Z")

</div>

So I am writing a plugin that will be using some `.dll` `.lib` packages. I’ve successfully got the plugin’s `Build.cs` to include the `.lib` but it wont compile. I get an `external symbol not found` error that just wont go away. I’ve placed the `.dll` at all the locations I can think of where the linker should pick it up to no avail (Binary folders in and out of the plugin, (Win64 and “ThirdParty”)), Public and Private Folders in the plugin, project root, you name it.

Does anyone know how to link a `.dll` for use in a plugin? (fyi, I just want to expose part of the `.dll` to Blueprints or use them in C++ functions that get exposed to Blueprints).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_98061df4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_98061df4](https://forums.unrealengine.com/u/anonymous_user_98061df4)\
**Post date:** [June 12, 2017, 12:51pm UTC](https://forums.unrealengine.com/t/linking-a-dll-in-a-plugin/310547/2 "2017-06-12T12:51:36Z")

</div>

Related: [c++ - Linking a DLL in an Unreal 4 Plugin - Stack Overflow](https://stackoverflow.com/q/29000809/6655092)

Even better: [How do you link to a DLL from a plugin? - Programming & Scripting - Epic Developer Community Forums](https://answers.unrealengine.com/questions/262233/how-do-you-link-to-a-dll-from-a-plugin.html)
