Linker issue with lambda function in a ContentBrowserDataSubsystem

Hi I’m having link issues with a lambda function I’m trying to figure out.
Using lambdas like this is pretty new to me in C++ so I’m not entirely sure about all the syntax, but right now the compiler seems happy with my lambda and the problem seems to be linker related.

|Error|LNK2019|unresolved external symbol __declspec(dllimport) public: __cdecl FContentBrowserItemData::FContentBrowserItemData(class FContentBrowserItemData const &) (__imp_??0FContentBrowserItemData@@QEAA@AEBV0@@Z) referenced in function public: bool __cdecl <lambda_c7c9ff94e04d1185746f15353c01822e>::operator()(class FContentBrowserItemData &&)const (??R<lambda_c7c9ff94e04d1185746f15353c01822e>@@QEBA_N$$QEAVFContentBrowserItemData@@@Z)

Has nothing to do with the lambda you need to add ContentBrowser to your PrivateDependencyModuleNames in your build.cs class.

If you use code not out of the core functionality of the engine you will always need to add the module to the plugin/game module build.cs, otherwise the compiler will fail with a linker error.

Hi, that makes no difference unfortunately.
I’m not sure if it’s necessary but I made sure to delete the Intermediate and Binaries folders and then re-generate the project files as well.

Oh you are right, but the module is “ContentBrowserData”!
Thank you for getting me on the right track!