undefined references and static keyword

I don't want singleton, since it allows only 1 instance for each class.
I can declare many alarms, for example: Alarm x,y,z;

In my code i declare an Alarm as static instead of global, because it will be used only on that function and i want it to be persistent. But it looks like not working at all.