help with cross compile example command/setup for helloworld.c
by badbetty from LinuxQuestions.org on (#501V9)
Good morning (here) folks,
I am frustrated with myself at not sorting this.
I have not post the simple helloworld.c code (unless someone asks me to).
Having built and installed the newlib, arm-gcc, arm-binutils (and arm-gdb) SlackBuilds, on a slack 14.2 64 fully updated system, please someone post by reply a full 'arm-none-eabi-gcc' command to compile a helloworld.c program please ?
No matter what I try, it wont compile without errors (many again not posted for simplicity) which I suspect are linking errors etc (sorry I am just learning at the moment), but it seems such a simple program and that a lot of internet posts seem to suggest should just 'work'... but it cant be that simple obviously and seems to need something adding to the 'toolchain' or references to libraries in the arm-...-gcc command (other than the above I've installed).
Sorry for asking for such a simple hand-holding.
Thank you
Habs


I am frustrated with myself at not sorting this.
I have not post the simple helloworld.c code (unless someone asks me to).
Having built and installed the newlib, arm-gcc, arm-binutils (and arm-gdb) SlackBuilds, on a slack 14.2 64 fully updated system, please someone post by reply a full 'arm-none-eabi-gcc' command to compile a helloworld.c program please ?
No matter what I try, it wont compile without errors (many again not posted for simplicity) which I suspect are linking errors etc (sorry I am just learning at the moment), but it seems such a simple program and that a lot of internet posts seem to suggest should just 'work'... but it cant be that simple obviously and seems to need something adding to the 'toolchain' or references to libraries in the arm-...-gcc command (other than the above I've installed).
Sorry for asking for such a simple hand-holding.
Thank you
Habs