Camera Component not being inherited from C++ class

I recently had a somewhat similar problem. Maybe the solution is the same: Try commenting out the creation of the component in the constructor, compile, uncomment again and recompile.