This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: eCOS configuration
- From: Gary Thomas <gthomas at ecoscentric dot com>
- To: Mildred Frisco <mildredf at asti dot dost dot gov dot ph>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 16 Oct 2002 07:01:13 -0600
- Subject: Re: [ECOS] eCOS configuration
- References: <001701c274da$2b4267e0$18060a0a@hagakhak>
On Wed, 2002-10-16 at 00:06, Mildred Frisco wrote:
>
>
> I have done a test configuration for the ecos kernel using:
>
> # ecosconfig new assabet kernel
> # make tree
> # make tests
>
> The compile generated no errors and produced the directories include, lib
> and tests under install. I have also created the libsupc++.a file under the
> install/lib directory
> I tried to compile/link the hello.c application program but there was an
> error:
>
> /tmp/ccK0iSUx.o: in function main
> hello.c:5: undefined reference to printf
>
> I tried to look for the ccKiSUx.o but I can't find it.
>
> Here is the hello.c program:
>
> #include <stdio.h>
>
> int main()
> {
> printf("hello");
> return 0;
> }
>
>
>
> Please help. Thank you very much.
Your configuration doesn't include "printf", which is defined
in the libc/stdio package.
Try rebuilding with a more inclusive template, e.g.
$ ecosconfig new assabet all
--
------------------------------------------------------------
Gary Thomas |
eCosCentric, Ltd. |
+1 (970) 229-1963 | eCos & RedBoot experts
gthomas@ecoscentric.com |
http://www.ecoscentric.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