This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Missing symbols after porting to Eclipse

This is what happens when linking my project in Eclipse:

make all 
'Building target: project_name.elf'
'Invoking: Cross ARM C Linker'
arm-none-eabi-gcc -mcpu=cortex-m3 -march=armv7-m -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g3 -Xlinker --gc-sections -Wl,-Map,"project_name.map" -lm -o "project_name.elf" \
./RTE/nRF_SoftDevice/nRF51422_xxAC/softdevice_handler.o ./RTE/nRF_Libraries/nRF51422_xxAC/app_button.o ./RTE/nRF_Libraries/nRF51422_xxAC/app_error.o ./RTE/nRF_Libraries/nRF51422_xxAC/app_gpiote.o ./RTE/nRF_Libraries/nRF51422_xxAC/app_scheduler.o ./RTE/nRF_Libraries/nRF51422_xxAC/app_timer.o ./RTE/nRF_Libraries/nRF51422_xxAC/nrf_assert.o ./RTE/nRF_Drivers/nRF51422_xxAC/app_uart.o ./RTE/nRF_Drivers/nRF51422_xxAC/ble_flash.o ./RTE/nRF_Drivers/nRF51422_xxAC/nrf_delay.o ./RTE/nRF_Drivers/nRF51422_xxAC/pstorage.o ./RTE/nRF_BLE/nRF51422_xxAC/ble_advdata.o ./RTE/nRF_BLE/nRF51422_xxAC/ble_conn_params.o ./RTE/Device/nRF51422_xxAC/system_nrf51.o ./RTE/Board_Support/nRF51422_xxAC/bsp.o ./Application/main.o

c:/armtoolchain/4.9_2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m\libg.a(lib_a-exit.o): In function 'exit':
exit.c:(.text.exit+0x2c): undefined reference to '_exit'

c:/armtoolchain/4.9_2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m\libg.a(lib_a-sbrkr.o): In function '_sbrk_r':
sbrkr.c:(.text._sbrk_r+0x18): undefined reference to '_sbrk'

collect2.exe: error: ld returned 1 exit status
make: *** [project_name.elf] Error 1

Any ideas as to what exactly is wrong?

Related