I ran into the same problem a while ago, but I figured out a simple solution to it in case anyone is still having trouble. After creating a new class (with .h and .cpp files) and linking it to the project, you have to save the project, close it, and reopen it. Problem solved. I'm not sure why this works, but it does.