如何使用 yocto - zynq 在 C 中建立靜態 hello world 程式?

如何使用 yocto - zynq 在 C 中建立靜態 hello world 程式?

我正在嘗試使用 yocto 在 C 中建立一個簡單的 hello world 程式。這是我的步驟。基本上,我想使用 JTAG 將這個精靈編程到我的 Zedboard 上。

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

相關內容