Pure Virtual Not Implemented

Hi, I’m getting this error with the PURE_VIRTUAL Macro.
I declared this FireWeapon() Pure Virtual function in SWeapon.h and called it defined/implemented it in SWeaponInstance.cpp which is derived from SWeapon class. But at the time of calling it from SWeapon.cpp, it’s throwing an error - “Pure Virtual Not Implemented (ASWeapon::FireWeapon)”

I can’t figure out why its showing this even though I implemented it in SWeaponInstance.cpp

SWeapon.h
virtual void FireWeapon() PURE_VIRTUAL(ASWeapon::FireWeapon, );

SWeaponInstance.h – virtual void FireWeapon() override;

Hello! Do you call Super class implementation?

Yeah, I did. But still it’s showing the same error.

Can you check that without calling empty Super implementation? The main idea - you can not call pure virtual method itself without overriding, so just remove this Super call

1 Like

I am having the same issue… did you find solution to this?