In the public
section of my class declaration, I have this:
static float m_screenWidth;
static float m_screenHeight;
I can then set them to whatever I want in the class constructor or elsewhere, however, the compiler fails when I use them, saying:
Undefined symbols for architecture
This is noted on any line in which I try to access these members. In class methods, I access them by name. In non-member functions I access them with the className::
prefix. Doesn't matter, they are not enjoyed. Any advice?
Worth noting that they are not getting "undeclared" errors, so they are recognized to some degree.