I’m trying to subclass from UPhysicsThrusterComponent
using Content Browser → Add New → New C++ Class (on a new empty project, UE4 4.16.2 pre-compiled) but I get the following compile errors:
CompilerResultsLog:Error: Error MyPhysicsThrusterComponent.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UPhysicsThrusterComponent::OnRegister(void)" (?OnRegister@UPhysicsThrusterComponent@@UEAAXXZ)
CompilerResultsLog:Error: Error TestProj.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UPhysicsThrusterComponent::OnRegister(void)" (?OnRegister@UPhysicsThrusterComponent@@UEAAXXZ)
CompilerResultsLog:Error: Error MyPhysicsThrusterComponent.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UPhysicsThrusterComponent::TickComponent(float,enum ELevelTick,struct FActorComponentTickFunction *)" (?TickComponent@UPhysicsThrusterComponent@@UEAAXMW4ELevelTick@@PEAUFActorComponentTickFunction@@@Z)
CompilerResultsLog:Error: Error TestProj.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UPhysicsThrusterComponent::TickComponent(float,enum ELevelTick,struct FActorComponentTickFunction *)" (?TickComponent@UPhysicsThrusterComponent@@UEAAXMW4ELevelTick@@PEAUFActorComponentTickFunction@@@Z)
CompilerResultsLog:Error: Error C:\Users\bartl\Documents\Unreal Projects\TestProj\Binaries\Win64\UE4Editor-TestProj-2247.dll : fatal error LNK1120: 2 unresolved externals