Why am I getting undefined refferances to all my static members of the class? Even if I chop it all down to just the LOADED = ture; line I still get an undefined refferances.
Code:class Some_Class { public: static void LOAD_DATA(char *data_file_path) { LOADED = true; ifstream stream; stream.open(data_file_path); stream>>nmbr; infolist = new weapon_info*[nmbr]; for(int i=0;i<nmbr;i++) { infolist[i] = new weapon_info; stream>>infolist[i]->id >>infolist[i]->mdmg >>infolist[i]->xdmg >>infolist[i]->range >>infolist[i]->speed >>infolist[i]->hands; } } private: static int nmbr; static bool LOADED; static weapon_info **infolist; int min_dmg, max_dmg; int hands; int speed; int range; };



LinkBack URL
About LinkBacks


