This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Adding a member to CTOR_LIST in HAL package
- From: Jesper Skov <jskov at redhat dot com>
- To: "N.Suresh" <nsuresh at cdotb dot ernet dot in>
- Cc: eCos Discuss <ecos-discuss at sources dot redhat dot com>,rprakash at cdotb dot ernet dot in, bshiva at cdotb dot ernet dot in
- Date: 16 May 2002 11:09:49 +0200
- Subject: Re: [ECOS] Adding a member to CTOR_LIST in HAL package
- References: <3CDF9D49.8507668C@cdotb.ernet.in>
On Mon, 2002-05-13 at 13:02, N.Suresh wrote:
> Hi all,
> I am trying to add an entry into the CTOR_LIST by creating a static
> object of dummy class
> inside the HAL.
> But this doesn't get added to the final list. (Observed in ecos.map
> file).
> If i do the same functionality in the pkgstart.cxx of infra package,
> it is getting added to the list..
> I checked the makefiles of both the packages, but couldn't find much
> differences..
> Any idea why this is happening?
Yeah, you are probably not linking the file to libextras. Look at the
CDL for CYGPKG_IO_FILEIO which puts misc.cxx in libextras. For a
description of why this is necessary, read the CDL manual.
Jesper
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss