Compiling using arm-none-eabi-gcc and linking library liba.a error

后端 未结 2 1353
[愿得一人]
[愿得一人] 2021-01-02 08:59

I am compiling a hello world program in C on a 64-bit Linux machine. I am using a GCC ARM embedded toolchain to cross compile my program on a FOX G20 V board with an ATMEL A

2条回答
  •  长发绾君心
    2021-01-02 09:42

    Try executing this:

    arm-none-eabi-gcc --specs=rdimon.specs -lgcc -lc -lm -lrdimon -o hello hello.c
    

    Your toolkit seems to provide the librdimon.a, a library which provides the basic standard C functions.

提交回复
热议问题