10 years, 4 months ago.  This question has been closed. Reason: Removed release mode reference to capi in linker settings... Hope I don't need capi.

Trouble building exported projects offline in release mode

Hello, My first steps were going well using the online compiler. I wanted to try and export a project into lpcXpresso and investigate how to debug using the IDE... Any project I export, include simple examples such as blinky, will build in debug mode, but fail in release. Of the projects I have exported all have failed with the following error:

arm-none-eabi-c++ -nostdlib -L"C:\workspace\mbed_blinky" -L"C:\workspace\mbed_blinky\mbed" -L"C:\workspace\mbed_blinky\mbed\TARGET_LPC1768" -L"C:\workspace\mbed_blinky\mbed\TARGET_LPC1768\TOOLCHAIN_GCC_CR" -Xlinker -Map="mbed_blinky.map" -Xlinker gc-sections -mcpu=cortex-m3 -mthumb -T "C:\workspace\mbed_blinky\mbed\TARGET_LPC1768\TOOLCHAIN_GCC_CR\LPC1768.ld" -o "mbed_blinky.axf" ./main.o C:/workspace/mbed_blinky/mbed/TARGET_LPC1768/TOOLCHAIN_GCC_CR/cmsis_nvic.o C:/workspace/mbed_blinky/mbed/TARGET_LPC1768/TOOLCHAIN_GCC_CR/system_LPC17xx.o C:/workspace/mbed_blinky/mbed/TARGET_LPC1768/TOOLCHAIN_GCC_CR/startup_LPC17xx.o C:/workspace/mbed_blinky/mbed/TARGET_LPC1768/TOOLCHAIN_GCC_CR/retarget.o -lmbed -lcapi c:/nxp/lpcxpresso/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/bin/ld.exe: cannot find -lcapi collect2: ld returned 1 exit status make: * [mbed_blinky.axf] Error 1

Any advice would be greatly appreciated, Andrei