Have to be declared in class and initialized outside the class. Here is a stackoverflow discussion on this: http://stackoverflow.com/questions/5019856/c-initialize-static-variables-in-class Thanks, -- Mikhail