How do I set up class inheritance?

Hello,

I have a base class called ItemBase, I’d like to create another class called ItemWeapon that inherits from ItemBase. I do the usual by adding the code through the editor File/Add Code to Project, selecting ItemBase as parent class, open VS2013 to edit it, but when I want to compile it, it throws some errors, without adding any new code.

The compiler says AItemBase is not defined when it definitely is or I wouldn’t have been able to select it as a parent class.

If necessary I’ll post the other errors of the compiler, but as it has to be an error not related to code I think it won’t be needed.

Am I doing somethin wrong?

In short, this is what I want to do:

ItemBase, parent is Actor
ItemWeapon, parent is ItemBase ← this doesn’t work.

Sorry, this is actually something I should’ve figured out by myself. It looks like when inheriting from another created C++ class, UE4 doesn’t automatically add the header for that parent class. I thought it did and didn’t even check that one.

it is not a UE issue, it is a C++ feature. nothing to do with UE