# How do I use a downloaded library?

**URL:** <https://forums.unrealengine.com/t/how-do-i-use-a-downloaded-library/302413>\
**Category:** Pipeline & Plugins\
**Tags:** libraries, unreal-engine, Visual-Studio, CPP, question\
**Created:** [December 24, 2014, 10:15pm UTC](https://forums.unrealengine.com/t/how-do-i-use-a-downloaded-library/302413 "2014-12-24T22:15:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_c6e04c521](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c6e04c521](https://forums.unrealengine.com/u/anonymous_user_c6e04c521)\
**Post date:** [December 24, 2014, 10:15pm UTC](https://forums.unrealengine.com/t/how-do-i-use-a-downloaded-library/302413/1 "2014-12-24T22:15:39Z")

</div>

I’ve had a problem that I’ve been trying to solve for weeks. Google hasn’t been any help so it’s about time I ask on the forum.

I downloaded a C++ library called RogueLikeLib that consists of a single folder with header files and a few C++ source files. I haven’t the slightest idea of how to link this library with my project in Visual Studio 2013. Does anybody know how to do this???

---

<div class="post-metadata">

**Author:** ![SaxonRah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaxonRah](https://forums.unrealengine.com/u/SaxonRah)\
**Post date:** [December 25, 2014, 10:43am UTC](https://forums.unrealengine.com/t/how-do-i-use-a-downloaded-library/302413/2 "2014-12-25T10:43:44Z")

</div>

If you want to be working with direct source code, just add all of the header files into your c++ project and re-generate the Visual Studio project, by right-clicking the ue4 project file and selecting regenerating Visual Studio projects.

This is a little messy and pollutes your game code’s directory. If that’s okay then that’s okay, but… The solution here if you don’t want it polluting your game code, would be to compile the library and link the library. There are a few tutorials that you can follow.

[Linking Static Libraries Using The Build System](https://wiki.unrealengine.com/Linking_Static_Libraries_Using_The_Build_System) or  
[Linking Dlls](https://wiki.unrealengine.com/Linking_Dlls)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d3af3c29](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d3af3c29](https://forums.unrealengine.com/u/anonymous_user_d3af3c29)\
**Post date:** [April 19, 2016, 8:07pm UTC](https://forums.unrealengine.com/t/how-do-i-use-a-downloaded-library/302413/3 "2016-04-19T20:07:03Z")

</div>

Will it cross compile the source code you add? Do you have recommendations on how to do that not using visual studio?
