# How to include library in engine source?

**URL:** <https://forums.unrealengine.com/t/how-to-include-library-in-engine-source/436647>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [October 29, 2018, 4:08pm UTC](https://forums.unrealengine.com/t/how-to-include-library-in-engine-source/436647 "2018-10-29T16:08:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BestWarrior](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BestWarrior](https://forums.unrealengine.com/u/BestWarrior)\
**Post date:** [October 29, 2018, 4:08pm UTC](https://forums.unrealengine.com/t/how-to-include-library-in-engine-source/436647/1 "2018-10-29T16:08:35Z")

</div>

Hi, I want to use the Magnification API from microsoft in engine source not project source so I need to include magnification.h but I think I also need the .lib and .dll files. I added Magnification folder in Source/ThirdParty and I added Magnification.build.cs with the following code

```
using UnrealBuildTool;

public class Magnification : ModuleRules
{
    public Magnification(ReadOnlyTargetRules Target) : base(Target)

    {
        Type = ModuleType.External;

        string MagnificationPath = Target.UEThirdPartySourceDirectory + "Magnification/Magnification";

        string MagnificationIncludePath = MagnificationPath;
        PublicSystemIncludePaths.Add(MagnificationIncludePath + "Win64"); // PublicSystemIncludePaths is for "stable" headers that don't change

        string MagnificationLibPath = MagnificationPath;
        if (Target.Platform == UnrealTargetPlatform.Win64)
        {
            MagnificationLibPath += "Win64";
            PublicLibraryPaths.Add(MagnificationLibPath);

            PublicAdditionalLibraries.Add("magnification.lib");

            PublicDelayLoadDLLs.Add("Magnification.dll");
        }
        else if (Target.Platform == UnrealTargetPlatform.Win32)
        {
            MagnificationLibPath += "Win64";
            PublicLibraryPaths.Add(MagnificationLibPath);

            PublicAdditionalLibraries.Add("magnification.lib");

            PublicDelayLoadDLLs.Add("Magnification.dll");
        }
    }
}`

```

The problem is that I get unresolved external symbol errors.

I have these files:  
Engine\Source\ThirdParty\Magnification\Magnification.build.cs  
Engine\Source\ThirdParty\Magnification\Magnification\Win64\magnification.h  
Engine\Source\ThirdParty\Magnification\Magnification\Win64\Magnification.dll  
Engine\Source\ThirdParty\Magnification\Magnification\Win64\magnification.lib

Thankyou.
