How do I link a Module in a newly created Plugin?

Very new to Unreal, so sorry for such a basic question, but an afternoon of Googling and reading docs hasn’t unearthed anything.

I added a Blank Plugin to my project. I’m referencing plugin module’s class from one of my project’s classes. This is generating link errors:

1>MyClass.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl FMyPluginModule::StartupModule(void)” (?StartupModule@FMotiveSDKModule@@UEAAXXZ)
1>MyClass.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl FMyPluginModule::ShutdownModule(void)” (?ShutdownModule@FMotiveSDKModule@@UEAAXXZ)

Obviously I need to tell the linker to link to this module, but apparently I have no idea how to do that. I added “MyPlugin” to both PublicDependencyModuleNames and PrivateDependencyModuleNames (still not clear on the difference here…) and regenerated the project files with “Generate Visual Studio project files”. Is there another place to tell the linker which modules to link?

Noob answer to noob question, I wasn’t using the _API macro. Makes sense now!

1 Like