This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: eCOS configuration
- From: Simon Sudler <sudlersn at iis dot fhg dot de>
- To: Mildred Frisco <mildredf at asti dot dost dot gov dot ph>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 16 Oct 2002 12:41:02 +0200
- Subject: Re: [ECOS] eCOS configuration
- References: <001701c274da$2b4267e0$18060a0a@hagakhak>
Hi,
compile it with these options
$ gcc -g -IBASE_DIR/ecos-work/install/include hello.c
-LBASE_DIR/ecos-work/install/lib -Ttarget.ld -nostdlib
that should work
Cheers
Simon
Mildred Frisco schrieb:
>
> 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.
>
> Mildred
> [Mildred Frisco]
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss