You need to create a static instance, not a static reference.


ErrorH& ErrorH::Instance()
{
static ErrorH self;
return self;
}