title: "Incomplete type isn't allowed" array of class types
body: <p>I'm putting a class definition and a void function outside the main.cpp, but when at declaration of sports it give me "incomplete type isn't allowed", what can I do?</p>
  
  <p>main.cpp:</p>
  
  <pre><code>#include "importer.h"
  
  int main(){
      object sports[200];  //here it give me the error
  </code></pre>
  
  <p>importer.h:</p>
  
  <pre><code>extern class object;
  </code></pre>
  
  <p>importer.cpp:</p>
  
  <pre><code>class object {
  public:
      string attributes[5];
      string name;
      int objectsLength = 0;
  };
  </code></pre>