C++ Static Variable Initialization

Benjamin Kosnik bkoz@redhat.com
Fri Aug 17 14:29:00 GMT 2001


Sarangdhar,

You may want to investigate using the -finit-priority flag, and
marking up your sources to indicate when specific items should be
initialized.

See this page:
http://gcc.gnu.org/onlinedocs/gcc-3.0/gcc_6.html#SEC121

You might also want to scope the g++ testsuite for examples.

best,
benjamin



More information about the Gcc mailing list