8 years, 2 months ago.

MBED under Eclipse with Cross ARM GCC

I exported a project as described in https://developer.mbed.org/handbook/Exporting-to-Make to compile it with Eclipse.

The eclipse project is configured to use the GNU Tools for ARM Embedded Processors :

/media/uploads/HumuZ/settings.jpg

When I build the project, I get a lot of warnings related to SVCALL as well as errors error: unknown type name 'class'. This makes make think that the build process tries to compile everything as if they was only C code and not C++ as well.

I don't understand why as the makefile differentiate C and C++ files:

makefile extract

AS      = $(GCC_BIN)arm-none-eabi-as
CC      = $(GCC_BIN)arm-none-eabi-gcc
CPP     = $(GCC_BIN)arm-none-eabi-g++
LD      = $(GCC_BIN)arm-none-eabi-gcc
OBJCOPY = $(GCC_BIN)arm-none-eabi-objcopy
OBJDUMP = $(GCC_BIN)arm-none-eabi-objdump
SIZE    = $(GCC_BIN)arm-none-eabi-size

Any idea on how I could solve that? Thank you

Be the first to answer this question.