1#ifndef _lib_static_init_h 2#define _lib_static_init_h 3 4class Foo { 5private: 6 int value; 7 static int counter; 8public: 9 virtual int getValue(); 10 Foo(); 11 virtual ~Foo(); 12}; 13 14Foo::~Foo() 15{ 16} 17 18extern Foo theFoo; 19 20#endif /* _lib_static_init_h */ 21