Undifined errors

Hello every one,
I am new in Unreal Engine and i am learning now from official docmentation. Sometimes i have a problems, I am doing all like in tutorials but code doesn’t work. For example I tried add this line of code


UCameraComponent* OurCamera = CreateDefaultSubobject<UCameraComponent>(TEXT("OurCamera"));

But I can see the error communication undifined UCameraComponent. I find in documentation UCameraComponent class UCameraComponent | Unreal Engine Documentation and I saw Inheritance Hierarchy so I #include “UObjectBase.h” but this doesn’t work and the UCLASS() error is this declaration has no storage class or type specifier. When I tried learn from other youtube tutorials I have some problem when the teacher in videotutorial adds any Class, for example for UShapeComponent.
Thanks for any help and have a good day