title: incomplete type error with structures
body: <p>Sorry to bother you, I'm new at c and I need help with something: I tried to create a structure that has inside of it an element of the same structure type (like a node tree in a tree, which can have children nodes). This is the code I have so far:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  typedef struct vectorObject vectorObject;
  
  struct vectorObject{
    int value; //Value of node
    int hasChildren; //1 if it has and 0 if not
    int level; //0 for leaf, 1 for leaf parent, 2 for parent of parent, etc...
  
    vectorObject leftSon;
    vectorObject rightSon;
  };
  
  vectorObject *listObjetos;
  vectorObject *priorityQueue;
  
  
  int main(void) {...}
  </code></pre>
  
  <p>The problem is that I keep getting this error</p>
  
  <pre><code>field 「leftSon」 has incomplete type
  </code></pre>
  
  <p>And I don't know what to do. In java you can create a class and this class can have itself as an object, because you are using objects, but here I don't know what happens. Could you please help me? Thank you so much and sorry to bother you.</p>