I’m trying to create my own spring arm component (MySpringArmComponent) that inherits from the base SpringArmComponent.
I add the code from Unreal and everything works fine (I can see it in the component list in the editor).
However, when I try and override a function from the base class (UpdateDesiredArmLocation() in this case), I get the following error:
error C4273: ‘USpringArmComponent::UpdateDesiredArmLocation’ : inconsistent dll linkage
This seems to be related to the class macro, but I can’t quite figure out how to fix it.
My class has the format:
class MYGAME_API UMyGameSpringArmComponent : public USpringArmComponent
The base class has the format:
class ENGINE_API USpringArmComponent : public USceneComponent
I haven’t done anything fancy, I just created the new class using the standard Unreal workflow.
Does anyone have any ideas?
Thanks for any help!