+++ Glen VanMilligan [04-12-10 11:40 -0800]:
> Can someone tell me where I should have my linker looking when cross compiling
> for the balloon board. I can compile small programs, but nothing with stdio
> or stdlib, etc. In trying to get the CS5 to work, I need to link in the
> objects for the memory manager, the objects for printf to standard io etc.
You need to point it at wherever you are keeping your arm-linux versions of
the include files and object files.
On a Debian system these are organised into /usr/arm-linux/include and
/usr/arm-linux/lib but this is not a widely-observed standard. It very much
depends on how your cross-compiler was set-up (tyhat determines where it
looks by default), and the compile-time options you give (which determines
what actually happens).
The thing you do need to do is take care that you are not accidentally
linking against x86 (host) versions of files as it will either not work, or
produce myseteriously-broken code.
> Do I need to compile a whole linux version (ie 2.4.25) to get the objects?
No, but some things do need access tothe kernel headers to compile. This is
rare: glibc needs them, and some low-level tools, but your apps shouldn't
generally need kernel headers. IF you do need kernel headers then you need
to install the kernel sources and configure them for an arm-device in order
to set up links to the correct asm-arm and arch/arm header files. But you
don't need to build a kernel.
Wookey
--
Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK Tel +44 (0) 1223 811679
work: http://www.aleph1.co.uk/ play: http://www.chaos.org.uk/~wookey/