This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
static class initilization order
- From: Ottawa Guy <ottawaguy81 at yahoo dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 22 Oct 2003 20:55:20 -0700 (PDT)
- Subject: [ECOS] static class initilization order
Hi,
I am trying to use malloc function from malloc.cxx
file. Inside that file cyg_memalloc_mallocpool class
gets initilized and there is an initialization
condition on this class.
Is there any gcc any flag I need to set to keep the
proper initilization order.
Right now when ever I use malloc in my code, my
simulator just crashes, even though I am not making
the actual "malloc" call. I figured this is something
to do with my constructor.
Can someone please help.
Mike
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.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