# A bit of order about using external libraries

**URL:** <https://forums.unrealengine.com/t/a-bit-of-order-about-using-external-libraries/331183>\
**Category:** C++\
**Tags:** libraries, unreal-engine, CPP, question\
**Created:** [September 5, 2015, 8:33pm UTC](https://forums.unrealengine.com/t/a-bit-of-order-about-using-external-libraries/331183 "2015-09-05T20:33:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mauriliodc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mauriliodc](https://forums.unrealengine.com/u/mauriliodc)\
**Post date:** [September 5, 2015, 8:33pm UTC](https://forums.unrealengine.com/t/a-bit-of-order-about-using-external-libraries/331183/1 "2015-09-05T20:33:43Z")

</div>

Hello everyone.  
I have successfully added to my project a couple of libraries like: opencv, xsens and libnoise.  
I followed this guide [OPENCV UE4](https://wiki.unrealengine.com/Integrating_OpenCV_Into_Unreal_Engine_4) and everything works like a charm, but i have a couple of questions because I am not sure what is going under the hood (and that’s bad!)

- I am not experienced on windows platforms but basically I am pretty sure that a **.lib** is like a **.a** and \*\*.dll \*\* is the like a **.so** in a linux environment. My point is, under linux i can link against a .so and everything works.  
Why i need to **both .lib and .dll** under windows? What am I missing?
- In the linked wiki page at a certain point you need to copy the library you are using in project’s folder i.e Binaries/Win64/ . That’s a mandatory passage otherwise your editor will not start. I did like that for opencv and xsens and everything worked, I deleted those libraries from that folder and the editor could not start anymore. Exactly what I was expecting. The situation changed using libnoise, I can start and use my editor even if I did not copy the libnoise.a and libnoise.dll in such folder. I am missing something here, the question is what.

Thank you so much, I hope to clarify at least this couple of doubts I have (the others can wait!)

---

<div class="post-metadata">

**Author:** ![RichardB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RichardB](https://forums.unrealengine.com/u/RichardB)\
**Post date:** [September 5, 2015, 10:32pm UTC](https://forums.unrealengine.com/t/a-bit-of-order-about-using-external-libraries/331183/2 "2015-09-05T22:32:25Z")

</div>

Hi Mauriliodc,

Sometimes on windows you can build/include a .lib which contains the call wrappers/init for a .dll rather than create them in code, but I think with OpenCV you can build as a .lib (.a) with no external dll needed (not sure about xsens).

I’ve run into similar things when I’ve accidentally included the DLL wrapper .lib rather than the fully compiled .lib…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6cbcb2ef1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6cbcb2ef1](https://forums.unrealengine.com/u/anonymous_user_6cbcb2ef1)\
**Post date:** [November 2, 2015, 8:23pm UTC](https://forums.unrealengine.com/t/a-bit-of-order-about-using-external-libraries/331183/3 "2015-11-02T20:23:16Z")

</div>

How did you get libnoise to work? I also wanted to use it in UE but I can’t build my project because of an ambiguous symbol (int32) caused by the basictypes.h included in libnoise.
