[U-Boot] compile error after installing ELDK arm-2007-01-22-uclibc.iso and uboot 1.3.4

My target is IXP425 based device. First I will try with ixdp425 board. I was testing my ELDK installation. I found this error while compiling example/hello_world.c
root@homet/u-boot-1.3.4/examples# ${CROSS_COMPILE}gcc -o hello_world hello_world.c hello_world.c:24:20: error: common.h: No such file or directory hello_world.c:25:21: error: exports.h: No such file or directory hello_world.c: In function 'hello_world': hello_world.c:33: warning: incompatible implicit declaration of built-in function 'printf' hello_world.c:33: error: 'XF_VERSION' undeclared (first use in this function) hello_world.c:33: error: (Each undeclared identifier is reported only once hello_world.c:33: error: for each function it appears in.) ------------------------------------------- But this
#include <stdio.h> int main() { printf("\nHello World\n"); return 0; } -------- compile fine
Any tips.
Thanks for the help.
Regards Ajit

Dear Ajit,
In message dfa7268c0811181306j5e42003boa342eb665982ad99@mail.gmail.com you wrote:
My target is IXP425 based device. First I will try with ixdp425 board. I was testing my ELDK installation. I found this error while compiling example/hello_world.c
...
root@homet/u-boot-1.3.4/examples# ${CROSS_COMPILE}gcc -o hello_world hello_world.c
This cannot work. This file is part of the U-Boot source tree and needs U-Boot Makefile support (and lots of special options) for compiling.
But this
#include <stdio.h> int main() { printf("\nHello World\n"); return 0; }
compile fine
So everything is fine. No problems at all. again.
Any tips.
Be happy.
Best regards,
Wolfgang Denk
participants (2)
-
Ajit Mittal
-
Wolfgang Denk