
私は、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