title: Global Array of structures
body: <p>just wondering, how do you use global arrays of a structure's?</p>
  
  <p>For example:</p>
  
  <pre><code>int y = 0;
  object objectArray [100];
  
  typedef struct object{
      time_t objectTime;
      int objectNumber;
  } object;
  
  int main(void)
  {
      while(1)
      {
          time_t time_now;
          time_now = time(NULL);
  
          object x = {time_now, objectNo}
          objectArray[y] = x;
          y++;
  
      }
  }
  </code></pre>
  
  <p>This always throws an "error: array type has incomplete element type", can anybody advise me of the problem and an appropriate solution?
  Thanks </p>