i'm trying to compile a cpp program for riot-os.
I modified the Makefile.include ( http://pastebin.com/tkxfVVAj )
in ./RIOT to use the arm-none-eabi-g++ compiler for my code file in the
project directory (./projects/hellocpp). The g++ compiler flags are set
to "-gdwarf-2 -Os -Wall".
When i run make, it starts to compile but doesn't link the projekt.
Here's the output: http://pastebin.com/x1HtUMWe
The output directory projects/hellocpp/bin contains this files
The target platform is the msba2 board.
everything you need to know is written in the error-log:
1. kill_r is defined twice. I guess the first time its defined in the newlib and the second time in our stubs. I don't know what exactly you want to do, but I don't think that you can link our code against the libc of your operating system without bigger code changes... And I also don't know if you can use newlib for cpp programs.
2. A memory region for cpp programs is missing - correct this in the linker script. Maybe this issue is also related to the usage of libc instead of newlib.
I am trying to compile a simple Hello World written in CPP
The libc is the one which is provided by CodeBench.
Thank you, i will now take a look on the link script and options.