order of constructors
Jim Wilson
wilson@specifixinc.com
Wed Dec 3 00:11:00 GMT 2003
Peter Barada wrote:
> Is there any way to control the order of static constructors so that
> some that access other functions are done after those functions
> intializing fucntions are done?
The C++ front end supports an init_priority attribute. This is
documented in the manual.
This was originally implemented for an embedded system, ECOS. It
requires binutils support which does not exist for all targets. This
feature may conflict with other C++ language features. Use at your own
risk.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
More information about the Gcc
mailing list