# custom plugin ThirdParty depedency unresolved external error outside of module

**URL:** <https://forums.unrealengine.com/t/custom-plugin-thirdparty-depedency-unresolved-external-error-outside-of-module/464360>\
**Category:** Plugins\
**Tags:** modules, unresolved-external-, unreal-engine, Plugins, question\
**Created:** [April 28, 2020, 6:52am UTC](https://forums.unrealengine.com/t/custom-plugin-thirdparty-depedency-unresolved-external-error-outside-of-module/464360 "2020-04-28T06:52:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmahlbrand](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bmahlbrand](https://forums.unrealengine.com/u/bmahlbrand)\
**Post date:** [April 28, 2020, 6:52am UTC](https://forums.unrealengine.com/t/custom-plugin-thirdparty-depedency-unresolved-external-error-outside-of-module/464360/1 "2020-04-28T06:52:39Z")

</div>

I have created a plugin where I utilize a static library I’ve written and compiled, this runs fine as the editor starts up.

```
#include "Chives.h" // location of header for Dial - definition in external static library
void FNamedModule::StartupModule()
{
    // This code will execute after your module is loaded into memory; the exact timing is specified in the .uplugin file per-module
    UE_LOG(LogTemp, Warning, TEXT("!!!!"))
    Dial("localhost", 15000, 6000);
}

```

However, when I create an actor in the project (outside the plugin modules), I’m met with unresolved external symbol linker errors.

I created a module within the plugin for the Chives static library. The build.cs is as follows:

```
using System;
using System.IO;
using UnrealBuildTool;

public class Chives : ModuleRules
{
	public Chives(ReadOnlyTargetRules Target) : base(Target)
	{
		Type = ModuleType.External;
		
		PublicIncludePaths.Add(Path.Combine(ModuleDirectory, "include"));
		
		PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "lib", "chives.lib"));
		PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "lib", "peppermint.lib")); // dependency of chives.lib
	}
}
```
