[size="4"]globals.h
[color="#000000"]
extern SDL_Rect winRect;
extern std::vector<SDL_Rect> platform;
extern bool paused;
extern bool exit;
[size=2]i then set the bool to false as so in the globals.cpp.
[size="4"]
bool paused = false;
bool exit = false;
[size="4"]however then when i try and use the global winRect SDL_Rect or the global vector of SDL_Rects in other classes the compiler spits out the "undefined reference to platform" or "to winRect". which i cant understand because they are set up in the globals.h file, and the globals.h is included within the class header that is trying to use them
[size="4"]do i need to define anything else regarding the vector and Rect in the globals.cpp file?
[size="4"]might there be something wrong with the order of my header inclusions for the class im trying to manipulate the globals with?
[size="4"]hope there is an easy solution to this, im sure im just missing something.
bool paused = false;
bool exit = false;