This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Chapter 13. Building and Running Sample Applications
- From: luna <luna at pcfreak dot ch>
- To: ecos-discuss at sources dot redhat dot com
- Date: Sun, 22 Aug 2004 11:07:12 +0200
- Subject: [ECOS] Chapter 13. Building and Running Sample Applications
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.
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
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss