![如何使用 yocto - zynq 在 C 中建立靜態 hello world 程式?](https://rvso.com/image/169421/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20yocto%20-%20zynq%20%E5%9C%A8%20C%20%E4%B8%AD%E5%BB%BA%E7%AB%8B%E9%9D%9C%E6%85%8B%20hello%20world%20%E7%A8%8B%E5%BC%8F%EF%BC%9F.png)
我正在嘗試使用 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