static class trouble

Hi folks, i want to get a class static, because i don’t need objects of it. All works pretty well but when i use

ofxXmlSettings XML;

in the header file i get problems. Is there any way to use the XML object (or objects in general) in a static class? should help answer your question about the why of this. The short answer is:


class testApp : public ofBaseApp{  
	void setup();  
        static ofPixels p2;  


ofPixels testApp::p2;  
void testApp::setup(){  
    p2.allocate(640, 480, 1);  

Thanks Joshua. And thanks for programming interactivity, helps me with my bachelor project.