That error usually means you forgot to implement a function (or missed a library), and generally only appears when it is needed.
In this case it means that the method GameObject::update()
(the update
method of the root GameObject
) isn't implemented. if it is meant to be abstract then add a =0
behind the declaration:
class GameObject
{
protected:
GLfloat x, y,sx, sy;
public:
virtual void update()=0;
void render();
GLfloat getX();
GLfloat getY();
GLfloat getSX();
GLfloat getSY();
GLfloat getCenterY();
};