For some reason this code
const FBoneContainer RequiredBones;
FSocketReference ref;
ref.InitialzeCompactBoneIndex(RequiredBones);
compiles with the error
error LNK2019: unresolved external symbol "public: void __cdecl FSocketReference::InitialzeCompactBoneIndex(struct FBoneContainer const &)" (?InitialzeCompactBoneIndex@FSocketReference@@QEAAXAEBUFBoneContainer@@@Z) referenced in function "protected: virtual void __cdecl AFabrikFullBody::BeginPlay(void)" (?BeginPlay@AFabrikFullBody@@MEAAXXZ)
2>C:\Users\gamer\Documents\Unreal Projects\Fabrik\annapurnapics_rnd\Binaries\Win64\UE4Editor-FabrikConstraints-Win64-DebugGame.dll : fatal error LNK1120: 1 unresolved externals
Had this error before, so I modified dependencies in the build.cs file
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "AnimGraphRuntime" });
PrivateDependencyModuleNames.AddRange(new string[] { "AnimGraphRuntime" });
and added #include "BoneControllers/AnimNode_SkeletalControlBase.h"
in the .cpp file with the code. Don’t know why it doesn’t work, looks ok to me