I have this game objects class, and I need a static variabls 'jumping'.
This is becuase multiple derived classes need to know if 'jumping' is true or false.
I am getting the error "undefined reference to game_objects::jumping" when i try to access it from derived classes.
Can anyone give me an example of how I can access jumping from a derived class?
Thank you.
Hi ,
How are you using jumping variable in the derived class , can you just past that code also .
Will you not require static function to access static variable ?