Followed answer here, trying to use the CableComponent plugin.
im able to include the cablecomponent.h file, (and declare an instance of it) ( still compiles fine here )
#include "CableComponent.h"
UPROPERTY(Category = Cable, VisibleAnywhere)
UCableComponent* Cable;
however when i do this:
Cable = PCIP.CreateDefaultSubobject<UCableComponent>(this, TEXT("Cable"));
I get the following error on compile:
Error 2 error LNK2019: unresolved external symbol “private: static class UClass * __cdecl UCableComponent::GetPrivateStaticClass(wchar_t const *)” (?GetPrivateStaticClass@UCableComponent@@CAPEAVUClass@@PEB_W@Z) referenced in function "public: class UCableComponent * __cdecl FObjectInitializer::CreateDefaultSubobject(class UObject *,class FName,bool)const " (??$CreateDefaultSubobject@VUCableComponent@@@FObjectInitializer@@QEBAPEAVUCableComponent@@PEAVUObject@@VFName@@_N@Z)
Edit*:
Ive also tried the following:
Getting both the CableComponent.cpp and .h from the github repository → results in lots of external symbol errors similar, but different from the above.
Edit:
My build.cs contains the following:
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" });
PrivateDependencyModuleNames.AddRange(new string[] { "CableComponent" });
PrivateIncludePathModuleNames.AddRange(new string[] { "CableComponent" });