You need a cross compiler (well, cross tool-chain, to be more precise). When the cross toolchain is built, it includes a full set of standard C headers that are configured for your cross compiler, and the compiler gets built-in knowledge of how to find the correct headers, libraries, etc. If you don't already have a toolchain from your hardware vendor, then you will have to create one. My usual recommendation for this is to use Crosstool-NG
. There is an active mailing list with friendly advice available to help you along.