Pointer to incomplete class type is not allowed

Could you show the content of your output log when you try to compile it?
Also, make sure you’ve read my edited answer.