Very simply put:
I have a class that consists mostly out of static public members, so I can group similar functions together that still have to be called from other classes/functions.
Anyway, I have defined two static unsigned chars in my class' public scope, when I try to modify these values in the same class' constructor, I am getting an "unresolved external symbol" error at compilation.
class test {
public:
static unsigned char X;
static unsigned char Y;
...
test();
};
test::test() {
X = 1;
Y = 2;
}
I'm new to C++ so go easy on me. Why can't I do this?