# I've got a DLL modules linking problem!

**URL:** <https://forums.unrealengine.com/t/ive-got-a-dll-modules-linking-problem/823007>\
**Category:** Programming & Scripting\
**Tags:** ue4-build, unreal-engine, question, CPP\
**Created:** [March 25, 2023, 10:22pm UTC](https://forums.unrealengine.com/t/ive-got-a-dll-modules-linking-problem/823007 "2023-03-25T22:22:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PsyKuKiller](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PsyKuKiller](https://forums.unrealengine.com/u/PsyKuKiller)\
**Post date:** [March 25, 2023, 10:22pm UTC](https://forums.unrealengine.com/t/ive-got-a-dll-modules-linking-problem/823007/1 "2023-03-25T22:22:27Z")

</div>

Hi guys I hope everybody is doing great with their projects.

So I want to declared a function inside of the header GenericApplication.h which is already #included in most of Runtime modules. Then I’d like to define the function in WindowsApplication.h because it needs winapi types and structs. All went good. Until I tried to call the function from GameInstance.cpp which already #includes GenericApplication.h header by default.

Here is the exact code for clarification:

In GenericApplication.h:

```auto
namespace InputSystemPrototypeNS
{
     extern APPLICATIONCORE_API void InitializeInputSystem();
}

```

Then inside WindowsApplication.cpp:

```auto
void InputSystemPrototypeNS::InitializeInputSystem()
{
    //...
}

```

Finally inside GameInstance.cpp:

```auto
...
void UGameInstance::Init()
{
...
InputSystemPrototypeNS::InitializeInputSystem();
}
...

```

This will lead to an undefined external linkage error in the GameInstance function.
