Hi to all!

I have some .h file with:

Qt Code:
  1. class ForwardDeclarationClass; // forward declaration of class
To copy to clipboard, switch view to plain text mode 

In same header file there is:
Qt Code:
  1. class MyClass : public QGlWidget
  2. {
  3. ....
  4. private:
  5. ForwardDeclarationClass* d;
  6. }
To copy to clipboard, switch view to plain text mode 

In the .cpp file I have:
Qt Code:
  1. ...
  2. ...
  3. ...
  4. class ForwardDeclarationClass
  5. {
  6. ....
  7. ....
  8. }
To copy to clipboard, switch view to plain text mode 

and after that there are defined all corresponding methods (in same .cpp file).

I try to compile this Qt project and I get following error:
Qt Code:
  1. forward declaration of `struct ForwardDeclarationClass'
To copy to clipboard, switch view to plain text mode 

What is wrong?