This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: How to include standard library functions.
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Louis Gagne <lgagne at yahoo dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 16 Apr 2003 09:12:56 +0200
- Subject: Re: [ECOS] How to include standard library functions.
- References: <20030415211817.61350.qmail@web10008.mail.yahoo.com>
On Tue, Apr 15, 2003 at 02:18:17PM -0700, Louis Gagne wrote:
> I'm trying to include standard library functions such
> as malloc(), free(), strcpy(), memset() and error
> codes. I've #include'ed the appropriate include
> files, but the prototypes still aren't found. Looking
> in some other code modules, such as the jiffs, I found
> the following in the dot-cdl files:
> requires CYGINT_ISO_MALLOC
>
> requires CYGPKG_ISOINFRA
> requires CYGPKG_ERROR
> requires CYGINT_ISO_ERRNO
> requires CYGINT_ISO_ERRNO_CODES
>
>
> Adding these to my own dot-cdl file only results in
> "constraints not satisfied" errors.
What template are you using.
Adding requires statements just says that this functionality is
required by the configuration. It does not automagically cause the
requirements to be fullfilled. To do that you need to add packages to
the configuration. In this case, you need packages "CYGPKG_ERROR" and
"CYGPKG_ISOINFRA".
Most templates include these, so im surprised you don't have
them. Hence the question as to what template you are using.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss