How to create custom Control Rig class in c++?

I have no idea but maybe try rebuilding your project?