I used the c++ class wizard to extend from BlendSpace, but I am receiving the following errors when trying to compile and I’m not sure how to fix them. I’m using version 4.5.1.
1>------ Build started: Project: Test, Configuration: Development_Editor x64 ------
1> Performing 1 actions (4 in parallel)
1> [1/1] Link UE4Editor-Test.dll
1> Creating library C:\Users\154464\Documents\Unreal Projects\Test\Intermediate\Build\Win64\TestEditor\Development\UE4Editor-Test.lib and object C:\Users\154464\Documents\Unreal Projects\Test\Intermediate\Build\Win64\TestEditor\Development\UE4Editor-Test.exp
1>TestBlendSpace.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UAnimationAsset::PostLoad(void)" (?PostLoad@UAnimationAsset@@UEAAXXZ)
1>Test.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UAnimationAsset::PostLoad(void)" (?PostLoad@UAnimationAsset@@UEAAXXZ)
1>TestBlendSpace.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UAnimationAsset::Serialize(class FArchive &)" (?Serialize@UAnimationAsset@@UEAAXAEAVFArchive@@@Z)
1>Test.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UAnimationAsset::Serialize(class FArchive &)" (?Serialize@UAnimationAsset@@UEAAXAEAVFArchive@@@Z)
1>TestBlendSpace.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UBlendSpaceBase::PostLoad(void)" (?PostLoad@UBlendSpaceBase@@UEAAXXZ)
1>Test.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UBlendSpaceBase::PostLoad(void)" (?PostLoad@UBlendSpaceBase@@UEAAXXZ)
1>TestBlendSpace.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UBlendSpaceBase::PostEditChangeProperty(struct FPropertyChangedEvent &)" (?PostEditChangeProperty@UBlendSpaceBase@@UEAAXAEAUFPropertyChangedEvent@@@Z)
1>Test.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UBlendSpaceBase::PostEditChangeProperty(struct FPropertyChangedEvent &)" (?PostEditChangeProperty@UBlendSpaceBase@@UEAAXAEAUFPropertyChangedEvent@@@Z)
1>TestBlendSpace.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UBlendSpaceBase::TickAssetPlayerInstance(struct FAnimTickRecord const &,class UAnimInstance *,struct FAnimAssetTickContext &)const " (?TickAssetPlayerInstance@UBlendSpaceBase@@UEBAXAEBUFAnimTickRecord@@PEAVUAnimInstance@@AEAUFAnimAssetTickContext@@@Z)
1>Test.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UBlendSpaceBase::TickAssetPlayerInstance(struct FAnimTickRecord const &,class UAnimInstance *,struct FAnimAssetTickContext &)const " (?TickAssetPlayerInstance@UBlendSpaceBase@@UEBAXAEBUFAnimTickRecord@@PEAVUAnimInstance@@AEAUFAnimAssetTickContext@@@Z)
1>TestBlendSpace.cpp.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl UBlendSpaceBase::GetAllAnimationSequencesReferred(class TArray<class UAnimSequence *,class FDefaultAllocator> &)" (?GetAllAnimationSequencesReferred@UBlendSpaceBase@@UEAA_NAEAV?$TArray@PEAVUAnimSequence@@VFDefaultAllocator@@@@@Z)
1>Test.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl UBlendSpaceBase::GetAllAnimationSequencesReferred(class TArray<class UAnimSequence *,class FDefaultAllocator> &)" (?GetAllAnimationSequencesReferred@UBlendSpaceBase@@UEAA_NAEAV?$TArray@PEAVUAnimSequence@@VFDefaultAllocator@@@@@Z)
1>TestBlendSpace.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UBlendSpaceBase::ReplaceReferredAnimations(class TMap<class UAnimSequence *,class UAnimSequence *,class FDefaultSetAllocator,struct TDefaultMapKeyFuncs<class UAnimSequence *,class UAnimSequence *,0> > const &)" (?ReplaceReferredAnimations@UBlendSpaceBase@@UEAAXAEBV?$TMap@PEAVUAnimSequence@@PEAV1@VFDefaultSetAllocator@@U?$TDefaultMapKeyFuncs@PEAVUAnimSequence@@PEAV1@$0A@@@@@@Z)
1>Test.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UBlendSpaceBase::ReplaceReferredAnimations(class TMap<class UAnimSequence *,class UAnimSequence *,class FDefaultSetAllocator,struct TDefaultMapKeyFuncs<class UAnimSequence *,class UAnimSequence *,0> > const &)" (?ReplaceReferredAnimations@UBlendSpaceBase@@UEAAXAEBV?$TMap@PEAVUAnimSequence@@PEAV1@VFDefaultSetAllocator@@U?$TDefaultMapKeyFuncs@PEAVUAnimSequence@@PEAV1@$0A@@@@@@Z)
1>TestBlendSpace.cpp.obj : error LNK2001: unresolved external symbol "protected: virtual bool __cdecl UBlendSpaceBase::ValidateSampleInput(struct FBlendSample &,int)const " (?ValidateSampleInput@UBlendSpaceBase@@MEBA_NAEAUFBlendSample@@H@Z)
1>Test.generated.cpp.obj : error LNK2001: unresolved external symbol "protected: virtual bool __cdecl UBlendSpaceBase::ValidateSampleInput(struct FBlendSample &,int)const " (?ValidateSampleInput@UBlendSpaceBase@@MEBA_NAEAUFBlendSample@@H@Z)
1>TestBlendSpace.cpp.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl UBlendSpace::IsValidAdditive(void)const " (?IsValidAdditive@UBlendSpace@@UEBA_NXZ)
1>Test.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl UBlendSpace::IsValidAdditive(void)const " (?IsValidAdditive@UBlendSpace@@UEBA_NXZ)
1>TestBlendSpace.cpp.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl UBlendSpace::SnapToBorder(struct FBlendSample &)const " (?SnapToBorder@UBlendSpace@@MEBAXAEAUFBlendSample@@@Z)
1>Test.generated.cpp.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl UBlendSpace::SnapToBorder(struct FBlendSample &)const " (?SnapToBorder@UBlendSpace@@MEBAXAEAUFBlendSample@@@Z)
1>TestBlendSpace.cpp.obj : error LNK2001: unresolved external symbol "protected: virtual enum EBlendSpaceAxis __cdecl UBlendSpace::GetAxisToScale(void)const " (?GetAxisToScale@UBlendSpace@@MEBA?AW4EBlendSpaceAxis@@XZ)
1>Test.generated.cpp.obj : error LNK2001: unresolved external symbol "protected: virtual enum EBlendSpaceAxis __cdecl UBlendSpace::GetAxisToScale(void)const " (?GetAxisToScale@UBlendSpace@@MEBA?AW4EBlendSpaceAxis@@XZ)
1>TestBlendSpace.cpp.obj : error LNK2001: unresolved external symbol "protected: virtual bool __cdecl UBlendSpace::IsSameSamplePoint(class FVector const &,class FVector const &)const " (?IsSameSamplePoint@UBlendSpace@@MEBA_NAEBVFVector@@0@Z)
1>Test.generated.cpp.obj : error LNK2001: unresolved external symbol "protected: virtual bool __cdecl UBlendSpace::IsSameSamplePoint(class FVector const &,class FVector const &)const " (?IsSameSamplePoint@UBlendSpace@@MEBA_NAEBVFVector@@0@Z)
1>TestBlendSpace.cpp.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl UBlendSpace::GetRawSamplesFromBlendInput(class FVector const &,class TArray<struct FGridBlendSample,class FDefaultAllocator> &)const " (?GetRawSamplesFromBlendInput@UBlendSpace@@MEBAXAEBVFVector@@AEAV?$TArray@UFGridBlendSample@@VFDefaultAllocator@@@@@Z)
1>Test.generated.cpp.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl UBlendSpace::GetRawSamplesFromBlendInput(class FVector const &,class TArray<struct FGridBlendSample,class FDefaultAllocator> &)const " (?GetRawSamplesFromBlendInput@UBlendSpace@@MEBAXAEBVFVector@@AEAV?$TArray@UFGridBlendSample@@VFDefaultAllocator@@@@@Z)
1>C:\Users\154464\Documents\Unreal Projects\Test\Binaries\Win64\UE4Editor-Test.dll : fatal error LNK1120: 13 unresolved externals
1> -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: C:\Users\154464\Documents\Unreal Projects\Test\Binaries\Win64\UE4Editor-Test.dll
1> Cumulative action seconds (8 processors): 0.00 building projects, 0.00 compiling, 0.00 creating app bundles, 0.00 generating debug info, 0.17 linking, 0.00 other
1> UBT execution time: 4.94 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ""C:\Program Files\Unreal Engine\4.5\Engine\Build\BatchFiles\Build.bat" TestEditor Win64 Development "C:\Users\154464\Documents\Unreal Projects\Test\Test.uproject" -rocket" exited with code -1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
TestBlendSpace.h
#pragma once
#include "Animation/BlendSpace.h"
#include "TestBlendSpace.generated.h"
/**
*
*/
UCLASS()
class TEST_API UTestBlendSpace : public UBlendSpace
{
GENERATED_UCLASS_BODY()
};
TestBlendSpace.cpp
#include "Test.h"
#include "TestBlendSpace.h"
UTestBlendSpace::UTestBlendSpace(const class FPostConstructInitializeProperties& PCIP)
: Super(PCIP)
{
}