Compiling Gameplay Module as DLL

I have split my C++ files into two seperate modules which I would like to be compiled as a main .exe and a seperate .dll file. I followed the guidence in the UE5 documentation on creating a module, but there is little relating to packaging in this way. I am getting the following error.

LNK1181: cannot open input file ‘…\Intermediate\Build\Win64\x64\UnrealGame\Development\Engine\UnrealGame-Engine.lib’

My two modules appear in this directory but not \Engine. I’ve set up one as IMPLEMENT_PRIMARY_GAME_MODULE and the other as IMPLEMENT_GAME_MODULE, I’ve set the link type as TargetLinkType.Modular; and the LaunchModuleName as my primary module.

I can’t help but feel like I’ve taken a wrong step, if I change the link type back to Monolithic the game packages as normal. Any ideas?

UE5.3 | VS2022 Community

Found the fix, I was working with an installed build not one built from source!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.