In one file, I have a declaration of an object "player" in a .cpp file. When I try to run a member function of that object from another header file (being sure to #include the file that contains the object,) it calls the object an undeclared identifier. Seeing as the object is already global, is there something special that I have to do to be able to use the variable in a header? Thanks in advance.
I assume you include correctly all needed files so I proceed to next assumption:
global variables on different source files does not have a specific order to be initialized so maybe this is the problem? I can't say since you don't day too much. Can you skip the use of global variable for example in favor of some local one?