Hello,
I have a plugin which has a free functions declared in a header file and defined in a cpp file.
The header file is present in Classes folder and cpp file is in private folder.
When i try to use this free function in my game project, it is giving me this linker error:
>MyActor.cpp.obj : error LNK2019: unresolved external symbol "void __cdecl Something(void)" (?Something@@YAXXZ) referenced in function "public: virtual void __cdecl AMyActor::OnConstruction(struct FTransform const &)" (?OnConstruction@AMyActor@@UEAAXAEBUFTransform@@@Z)
If i declare and define the free function inside the header file, then, it works, but if i separate it, it gives me that linker error.
Please help.
Thank you!