Code::Blocks Forums

User forums => Embedded development => Topic started by: narkis on January 24, 2015, 08:40:06 pm

Title: ARM (odroid) cross compiling set-up
Post by: narkis on January 24, 2015, 08:40:06 pm
dev platform:
Linux (Unubtu 14.04 LTS) on MacBookPro
Code::blocks - latest version;

need to cross compile for ARM (odroid -c1) armv7 processor.
Code::blocks set up with arm-linux-gnueabihf-cpp and other related compiler parts and linked in the build option for "GNU  GCC compiler for ARM".

even while building a simple console application project with "hello world" I get this error:

arm-linux-gnueabihf-cpp -Wall -ansi -fexceptions -O2 -std=c++11 -Wall -pg  -c /home/myname/Development/codeblock/ARMtest/main.cpp -o obj/Release/main.o
arm-linux-gnueabihf-cpp: fatal error: ā€˜-cā€™ is not a valid option to the preprocessor
compilation terminated.

I am at a loss
narkis
Title: Re: ARM (odroid) cross compiling set-up
Post by: oBFusCATed on January 24, 2015, 10:00:47 pm
Have you tried to use the executable that ends with g++?