This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: malloc not available?
- To: "'eCos Discussion'" <ecos-discuss at sourceware dot cygnus dot com>
- Subject: RE: [ECOS] malloc not available?
- From: "Trenton D. Adams" <tadams at extremeeng dot com>
- Date: Wed, 10 Oct 2001 17:10:24 -0600
- Organization: Extreme Engineering
For those searching the archives! :)
I figured it out, and I have
#include <stdlib.h>
#include <pkgconf/memalloc.h>
> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com
> [mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of
> Trenton D. Adams
> Sent: Wednesday, October 10, 2001 1:57 PM
> To: 'eCos Discussion'
> Subject: [ECOS] malloc not available?
>
>
> Is the standard malloc available somewhere? Do I have to download it
> separately from the repository? I included <sys/malloc.h>
> but I get the
> error below. The malloc () I know only takes one argument~
>
> /cygdrive/C/MyDocuments/eCosRepository/ecos/packages/devs/eth/
> wavelan/cu
> rrent/src/if_wvlan.c:345: macro `malloc' used with just one arg
> make[1]: Leaving directory
> `/c/MyDocuments/eCosBuilds/RAMSupport_build/devs/eth/wavelan/current'
>
> The eCos Reference manual says I can use the standard C Library malloc
> () call, but I don't see how since malloc.h is only implemented in the
> net package as far as I can tell.
>
> Trenton D. Adams
> Extreme Engineering
> #17, 6025 - 12 St. SE
> Calgary, Alberta, Canada
> T2H 2K1
>
> Phone: 403 640 9494 ext-208
> Fax: 403 640 9599
>
http://www.extremeeng.com