title: Deletion of pointer to incomplete type 'Point'; no destructor called
body: <p>I have 2 files:</p>
  
  <p><code>Point.h</code>:</p>
  
  <pre><code>class Point {
      int x;
      int y;
      char* name;
     public:
       Point() { name = new char[5]; }
      ~Point() { delete[] name; }
  };
  </code></pre>
  
  <p>and: <code>Line.h</code>:</p>
  
  <pre><code>class Point;
  class Line {
      Point* p;
    public:
      Line() {
        p = new Point[2];
        ....
        ...
      }
      ~Line() {
         delete[] p;
      }
  };
  </code></pre>
  
  <p>but when I compile, I got the next error:</p>
  
  <pre><code>deletion of pointer to incomplete type 'Point'; no destructor called
  </code></pre>
  
  <p>any help appreciated!</p>