This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]