exit.c:(.text+0x18): undefined reference to `_exit' when using arm-none-eabi-gcc

前端 未结 3 554
小蘑菇
小蘑菇 2020-11-29 01:37

I\'m new to the field of microcontrollers. I need to port an IDE which is compiling programs for AVR microcontrollers to compile programs for ARM microcontrollers. I have ju

3条回答
  •  再見小時候
    2020-11-29 02:24

    Use --specs=nosys.specs:

    arm-none-eabi-gcc --specs=nosys.specs $(OTHER_LINK_OPTIONS)
    

    Reference:

    • ARM Options
    • GNU Tools for ARM Embedded Processors

提交回复
热议问题