Interface in c++ build error

i’m trying to create interface in c++ based on this Interfaces | Unreal Engine Documentation
but i’m getting error i dont know why



Hello ,

Do you have a struct that you created called FItemStruct? I understand that it is part of the example but in the code provided, it is never declared and isn’t a default type of the engine. If you haven’t declared such a struct, this would be the reason your compilation is failing.

For future reference, be sure to check the Output log when the Error List isn’t giving you enough information. It should be giving you an output such as “Unrecognized type ‘FItemStruct’ - type must be a UCLASS, USTRUCT or UENUM”.

Have a nice day!