I have defined a class like the following in ParseUser.h
:
UCLASS()
class PARSEPLUGIN_API UParseUser : public UParseObject
{
GENERATED_UCLASS_BODY()
My intent is to expose all of the class’ functions through the plugin’s API by decorating the class definition like so, rather than having to add PARSEPLUGIN_API
to every function in the class. Unfortunately, doing so throws this error:
Module.ParsePlugin.cpp.obj : error LNK2019: unresolved external symbol "public: static class UClass * __cdecl UParseUser::GetPrivateStaticClass(wchar_t const *)" (?GetPrivateStaticClass@UParseUser@@SAPEAVUClass@@PEB_W@Z) referenced in function "public: static void * __cdecl UParseUser::operator new(unsigned __int64,class UObject *,class FName,enum EObjectFlags)" (??2UParseUser@@SAPEAX_KPEAVUObject@@VFName@@W4EObjectFlags@@@Z)
Now I am most likely doing this completely wrong, because upon looking up this error in the forums I see others have run into the same problem…but it was intentional, like a feature not exposed by Epic. Could someone point me in the right direction to resolve this link error?