Dear all,
I am getting an undefined reference error wrn I try to initilialize a
static map in the class constructor.
my map:
map<string,vector<string> > m;
and in the constructor
classname::classname(){
m["g"].push_back("x")
m["g"].push_back("y")
..
..
..
}
But compiling results in
undefined reference to `Classname::m'
I could not figure that out. (I think I ahve problems with static
initialization of a map inside the constructor)
Regards,