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?
main.cpp:
#include "importer.h"
int main(){
object sports[200]; //here it give me the error
importer.h:
extern class object;
importer.cpp:
class object {
public:
string attributes[5];
string name;
int objectsLength = 0;
};