c++ static object not created

Kövesdi György kgy@deverto.hu
Wed Nov 19 14:38:00 GMT 2008


I would like to create such an object:

static SomeClass my_instance;

I found that if there is no reference to this instance, then gcc does not call 
its constructor at all.
How can it be forced?

Thanx in advance
K. Gy.

More information about the Gcc-help mailing list