Closed kbumsik closed 9 years ago
'Invoking: MCU GCC Linker'
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -T"C:\Users\BumSik\Documents\git\Quadcopter-Flight-Controller\project_components\nrf24l01\transmitter\LinkerScript.ld" -Wl,-Map=output.map -Wl,--gc-sections -lm -o "transmitter.elf" @"objects.list"
c:/program files_develop/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.3.0.201507241045/tools/compiler/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7e-m/fpu\libc.a(lib_a-sbrkr.o): In function _sbrk_r': sbrkr.c:(.text._sbrk_r+0xc): undefined reference to
_sbrk'
This is solved by adding the following commend in Linker file (.ld) GROUP( libgcc.a libg.a libc.a libm.a libnosys.a )
Source: https://stackoverflow.com/questions/13235748/linker-error-on-a-c-project-using-eclipse
stdlib.h is not compiled. prints the error like this. arm-none-eabi/lib/thumb2\libc.a(lib_a-sbrkr.o): In function
_sbrk_r': sbrkr.c:(.text+0xc): undefined reference to
_sbrk'