
Dear Paul,
In message FE00509E242C6145AA57855D449BE2182A19D4@server.Tectonica.local you wrote:
The problem is: When I want to add any one of std header files anywhere on my architecture (pxa270), the compiler complains: stdio.h: No such file or directory.
U-Boot is not a standard application that runs under control of a general purpose OS, but it's a boot loader that lives in a very restricted, simple environment. As such, we cannot use the standard C library (glibc). Instead, U-Boot is self-contained and includes everything it needs, and nothing more.
<stdio.h> is a header file that is provided by glibc - it cannot be used with U-Boot as U-Boot doesn't provide the context needed for such a complex library like glibc.
I'm not sure why you would want to include <stdio.h> - it is not needed in U-Boot context. Please look around in the existing code how things are set up in U-Boot. This is NOT like developing a user space application under Linux. It is even more restricted than programming Linux kernel code (and in Linux kernel code you cannot include <stdio.h> either).
Best regards,
Wolfgang Denk