# How to add external libraries to generated Visual Studio 2015 project ?

**URL:** <https://forums.unrealengine.com/t/how-to-add-external-libraries-to-generated-visual-studio-2015-project/55109>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [February 11, 2016, 1:43pm UTC](https://forums.unrealengine.com/t/how-to-add-external-libraries-to-generated-visual-studio-2015-project/55109 "2016-02-11T13:43:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_920af75e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_920af75e](https://forums.unrealengine.com/u/anonymous_user_920af75e)\
**Post date:** [February 11, 2016, 1:43pm UTC](https://forums.unrealengine.com/t/how-to-add-external-libraries-to-generated-visual-studio-2015-project/55109/1 "2016-02-11T13:43:39Z")

</div>

UE 4.10.2  
VS2015  
Windows 7

How can I add external libraries to the VS2015 project generated by UnrealEditor ?  
I don’t see proper sections (C/C++ and Linker) in project configuration properties.

When I create ordinary VS2015 project, without Unreal, everything is OK.  
For Unreal generated projects, many sections in project configuration are missing.

Is this some bug ? Can it be fixed ? I can’t believe this could be intentional.  
I create application which needs to use external libraries.  
Could anyone help here ?

Apparently, I’m not the only one who struggles with this.  
I tried to search forum and I found this problem reported, but no useful answers:

> **[Can't link to external libraries from UE4 Project](https://forums.unrealengine.com/questions/312114/cant-link-to-external-libraries-from-ue4-project.html)**
>
> I am using version 4.9.2 of UE4, and Visual Studio Community 2013. I am trying to get voce speech recognition library (http://voce.sourceforge.net/) working in my UE4 project, and having trouble with the linker when I try to build my project. The...

Thanks in advance,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_920af75e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_920af75e](https://forums.unrealengine.com/u/anonymous_user_920af75e)\
**Post date:** [February 12, 2016, 3:12pm UTC](https://forums.unrealengine.com/t/how-to-add-external-libraries-to-generated-visual-studio-2015-project/55109/2 "2016-02-12T15:12:06Z")

</div>

Guys, really no one has an idea what’s the problem here ? Perhaps it should be set somewhere in the Unreal editor ? I’s hard to believe that nobody needed to use external libraries in UE application.

---

<div class="post-metadata">

**Author:** ![Lambdarevolution](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lambdarevolution](https://forums.unrealengine.com/u/Lambdarevolution)\
**Post date:** [February 12, 2016, 4:41pm UTC](https://forums.unrealengine.com/t/how-to-add-external-libraries-to-generated-visual-studio-2015-project/55109/3 "2016-02-12T16:41:11Z")

</div>

Check the wiki:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_920af75e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_920af75e](https://forums.unrealengine.com/u/anonymous_user_920af75e)\
**Post date:** [February 14, 2016, 3:06pm UTC](https://forums.unrealengine.com/t/how-to-add-external-libraries-to-generated-visual-studio-2015-project/55109/4 "2016-02-14T15:06:59Z")

</div>

@Lambdarevolution

Thanks a lot, I followed the article, I added required entries to my \*Build.cs file. However, my external libraries are 32 bit only and I develop my application for Win32 platform only.  
Everything builds correctly in Visual Studio, but not in Unreal Editor.  
Correct me if I’m wrong - I can package project from Editor for Win32, but I choose “Compile” in UnrealEditor, it only compiles for Win64 ?

There is a message in log “Launching UnrealBuildTool” and there is a switch Win64 among parameters.

The important question is: is it possible to set default target platform of UnrealEditor to Win32, not Win64 ?

Without this, it seems a lot of functionality is lost: I can create new classes in UE4, but they are not visible - there is a message that new class will be visible after recompilation, but Editor compiles onl Win64 and Win32 recompilation in VS does not help.  
Is it possible to switch UE4 compilation to Win32 ?

In case of any questions - for now I _have to_ use Win32. My external libraries are Win32 only for now, so “recompile your dependencies for Win64” is not an option, at least in near future.

Thanks in advance for help,

---

<div class="post-metadata">

**Author:** ![Heoki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Heoki](https://forums.unrealengine.com/u/Heoki)\
**Post date:** [February 14, 2016, 11:08pm UTC](https://forums.unrealengine.com/t/how-to-add-external-libraries-to-generated-visual-studio-2015-project/55109/5 "2016-02-14T23:08:17Z")

</div>

I don’t know if there’s way to get the editor to compile to Win32 by default but when you add a class you could right click on the uproject file and generate project files (if it’s a binary build from the launcher) or use the generate project files bat file (might only be available with full source). When you generate project files any files in your “Source” folder will get added to the project.

---

<div class="post-metadata">

**Author:** ![manoelneto](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@manoelneto](https://forums.unrealengine.com/u/manoelneto)\
**Post date:** [February 15, 2016, 2:45pm UTC](https://forums.unrealengine.com/t/how-to-add-external-libraries-to-generated-visual-studio-2015-project/55109/6 "2016-02-15T14:45:52Z")

</div>

Sorry, while projects can be deployed to 32-bit, the editor can only be compiled for 64-bit.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_920af75e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_920af75e](https://forums.unrealengine.com/u/anonymous_user_920af75e)\
**Post date:** [February 15, 2016, 6:09pm UTC](https://forums.unrealengine.com/t/how-to-add-external-libraries-to-generated-visual-studio-2015-project/55109/7 "2016-02-15T18:09:54Z")

</div>

@manoelneto  
\> Sorry, while projects can be deployed to 32-bit, the editor can only be compiled for 64-bit.

To make it clear - I don’t want to compile editor (as application) for Win32, I’m curious if editor (64 bit application) can compile project for Win32 target.
