![yocto - zynq を使用して C で静的な hello world プログラムを作成する方法は?](https://rvso.com/image/169421/yocto%20-%20zynq%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%20C%20%E3%81%A7%E9%9D%99%E7%9A%84%E3%81%AA%20hello%20world%20%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%81%AF%3F.png)
私は、yocto を使用して C で簡単な hello world プログラムを作成しようとしています。手順は次のとおりです。基本的に、この elf を 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