constructor calling order

Joe Buck jbuck@synopsys.COM
Tue Jan 22 06:45:00 GMT 2002


Mike Stump quotes the section of the gcc manual that refers to
the init_priority feature.  And that's fine as far as it goes.

What he fails to include is the caveat that it doesn't work for many
targets unless a recent enough version of the GNU linker is used
(so, for example, it doesn't work on Solaris with native tools).
It also doesn't suffice for code that must be portable to more compilers
than just g++.



More information about the Gcc mailing list