C:\Program Files\Epic Games\UE_4.17\Engine\Source\Runtime\CoreUObject\Public\UObject/Object.h(83) : error C2027: use of undefined type ‘Apickup::UBoxComponent’
c:\users\flyea\onedrive\documents\unreal projects\horde\source\horde\pickup.h(14) : note: see declaration of 'Apickup::UBoxComponent'
C:\Users\flyea\OneDrive\Documents\Unreal Projects\horde\Source\horde\pickup.cpp(21) : note: see reference to function template instantiation 'TReturnType *UObject::CreateDefaultSubobject<Apickup::UBoxComponent>(FName,bool)' being compiled
C:\Program Files\Epic Games\UE_4.17\Engine\Source\Runtime\CoreUObject\Public\UObject/Object.h(84) : error C2440: 'static_cast': cannot convert from 'UObject *' to 'Apickup::UBoxComponent *'
C:\Program Files\Epic Games\UE_4.17\Engine\Source\Runtime\CoreUObject\Public\UObject/Object.h(84) : note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
here is after I compile