I have a class which is essentially just holds a bunch of constant definitions used through my application. For some reason though, longs compile but floa
long
floa
You should initialize them in the body of one of your cpp files:
class MY_CONSTS { public : static const long LONG_CONST = 1; // Compiles static const float FLOAT_CONST; }; const float MY_CONSTS::FLOAT_CONST = 0.001f;