This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Default init_priority for C++ c'tors ??
- From: jyl087 at netscape dot net
- To: ecos-discuss at sources dot redhat dot com
- Date: Fri, 27 Sep 2002 18:24:20 -0400
- Subject: [ECOS] Default init_priority for C++ c'tors ??
I'm having some trouble with static C++ constructors. It seems that
without the __attribute__((init_priority (xxx)) modifier, my
C++ globals don't get initialized.
I tried setting CYGSEM_LIBC_INVOKE_DEFAULT_STATIC_CONSTRUCTORS
in my ecos.ecc file to "1", but that didn't seem to help.
According to the eCos documentation, C++ globals without the
init_priority attribute get initialized last. In my case, they're
never initialized.
Any ideas on what I'm doing wrong?
Thanks,
/Jim
__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss