Setting up/ using c++

Could give a screenshot of the header (.h) and cource file (.cpp) of your actor component class so I can understand the situation more? And also the build failed message you get from your code editor?