# Linking Library using the Build System is not working

**URL:** <https://forums.unrealengine.com/t/linking-library-using-the-build-system-is-not-working/277825>\
**Category:** Feedback & Requests\
**Tags:** build-tool, unreal-engine, documentation, bug-report, question\
**Created:** [March 22, 2014, 6:46am UTC](https://forums.unrealengine.com/t/linking-library-using-the-build-system-is-not-working/277825 "2014-03-22T06:46:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob\_Gneu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bob\_Gneu](https://forums.unrealengine.com/u/Bob_Gneu)\
**Post date:** [March 22, 2014, 6:46am UTC](https://forums.unrealengine.com/t/linking-library-using-the-build-system-is-not-working/277825/1 "2014-03-22T06:46:47Z")

</div>

I have attempted to load my library using the Build System (PublicAdditionalLibraries and PublicLibraryPaths) but the library is not loading that way. I removed the PublicAdditionLibraries entry and attempted to load my library with a pragma call which also failed. Once that was done I made sure that the path was correct by using the fully qualified (and escaped) path in the pragma call and it worked fine.

I ended up putting together the following hack to get the build working properly:

> **[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...

basically I am just defining a constant and passing it in at built time.

---

<div class="post-metadata">

**Author:** ![Bob\_Gneu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bob\_Gneu](https://forums.unrealengine.com/u/Bob_Gneu)\
**Post date:** [March 25, 2014, 3:30am UTC](https://forums.unrealengine.com/t/linking-library-using-the-build-system-is-not-working/277825/2 "2014-03-25T03:30:39Z")

</div>

I am now able to link via the build system, the catch being that the PublicLibrariesPath list is not allowing me to put in the path on my other drives and the libs are being searched for in the install directory for UE4. I have confirmed this by passing the full path through to the PublicAdditionalLibraries list and confirmed that my libraries are being found. I will push a fix for this when i get to the root cause in the build system.

Until then, the following will allow anyone who is waiting for a fix:

```
PublicAdditionalLibraries.Add(Path.Combine(V8LibrariesPath, "icui18n.lib"));
```
