This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Chapter 13. Building and Running Sample Applications
Thank you! Your hint fixed my error!
Greez Patrick Baumgartner
Gary Thomas <gary@mlbassoc.com>:
> On Sun, 2004-08-22 at 03:07, luna wrote:
> > Hi,
> >
> > i would like to build the sample application in chapter 13.
> >
> > i downloaded the pre-built standart tools by eCosCentric Limited
> > (http://ecos.sourceware.org/getstart.html) -> gcc 3.2.1
> >
> > my next step was to configure the minimal kernel for my bord with
> > eCos Config Tool and i follow the instruction in chapter 13.
>
> The 'printf()' function would not be included in the packages used
> by a minimal kernel. Try building a more complete kernel library,
> the default for example.
>
> >
> > My promt with the error (powerpc-eabi-gcc (GCC) 3.2.1 (eCosCentric)):
> >
> > $ powerpc-eabi-gcc -g -I ecos_kernel/minimal_ecos_install/include
> > application/hello.c -Lecos_kernel/minimal_ecos_install/lib -Ttarget.ld
> -nostdlib
> > /ecos-g/DOKUME~1/ecos/LOKALE~1/Temp/ccWb5Zig.o: In function `main':
> > /home/ecos/ec555_workspace/ecos/application/hello.c:7: undefined reference
> to
> > `printf'
> > collect2: ld returned 1 exit status
> >
> > My promt with the error (GNU C version 3.4.1 (powerpc-eabi)):
> >
> > $ /gnutools/bin/powerpc-eabi-gcc -g -I
> ecos_kernel/minimal_ecos_install/include
> > application/hello.c -Lecos_kernel/minimal_ecos_install/lib -Ttarget.ld
> -nostdlib
> > /ecos-g/DOKUME~1/ecos/LOKALE~1/Temp/ccW6G3NF.o(.text+0x20): In function
> `main':
> > application/hello.c:7: undefined reference to `printf'
> > collect2: ld returned 1 exit status
> >
> > the verbose mode of gcc doesnt tell me more. so i change the prinf to
> > diag_printf. now i can compile my sample project.
> >
> > has someone an idea to remove my error?
> >
> > Greez Patrick Baumgartner
> >
> --
> Gary Thomas <gary@mlbassoc.com>
> MLB Associates
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss