Author Topic: ARM (odroid) cross compiling set-up  (Read 9648 times)

narkis

  • Guest
ARM (odroid) cross compiling set-up
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: ARM (odroid) cross compiling set-up
« Reply #1 on: January 24, 2015, 10:00:47 pm »
Have you tried to use the executable that ends with g++?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]