I created a vector of gameobject pointers the created astroid that inherit from gobject and am trying to call the transform member function of the astroids but am getting an error
spaceduel.cpp:33: error: `transform' is not a typeCode:vector<GObject*> gameObjects(10); . . . gameObjects = spaceShip; for (int i = 1; i<10; i++) gameObjects[i] = new Astroid(); . . . for (int i = 1; i<10; i++) gameObjects[i].transform();
spaceduel.cpp:33: error: request for member of non-aggregate type before '(' tok en
What does this error mean GObject is pure virtual is that what non-aggregate object means or what?