Wie erstelle ich mit Yocto - Zynq ein statisches „Hallo Welt“-Programm in C?

Wie erstelle ich mit Yocto - Zynq ein statisches „Hallo Welt“-Programm in C?

Ich versuche, mit Yocto ein einfaches Hallo-Welt-Programm in C zu erstellen. Hier sind meine Schritte. Grundsätzlich möchte ich diesen Elf mit JTAG auf mein Zedboard programmieren.

source /opt/poky/2.5.3/environment-setup-cortexa9hf-neon-poky-linux-gnueabi 

#include <stdio.h>
int main()
{
  printf("Hello S..welcome to JTAG World\r\n");
  return 0;
}




  #$CC test.c --static -o test.elf

/opt/poky/2.5.3/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/7.3.0/real-ld: cannot find -lc
collect2: error: ld returned 1 exit status

verwandte Informationen