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

ベストアンサー1

おすすめ記事