Ask Your Question

c++ cross compiler

asked 2013-08-16 21:13:59 +0000

João M. S. Silva gravatar image


It seems there is no C++ cross-compiler for ARM. Is this correct?

Is there a reason? Perhaps C++ is less used in ARM architectures than C?


edit retag flag offensive close merge delete


mbooth, if I'm not mistaken gcc-arm-linux-gnu does not install the C++ compiler, only the C compiler.

João M. S. Silva ( 2013-08-18 01:57:11 +0000 )edit

gcc is perfectly capable of compiling C++, just by calling "gcc test.cpp -lstdc++" but you are right, trying this with the arm version of gcc "arm-linux-gnu-gcc test.cpp -lstdc++" yields the following error: "C++ compiler not installed on this system" which is annoying. Have you raised a bugzilla ticket?

mbooth ( 2013-08-19 14:40:32 +0000 )edit

1 answer

Sort by » oldest newest most voted

answered 2013-08-17 15:52:32 +0000

mbooth gravatar image

I assume you would be able to cross-compile to arm if you install these two packages:

$  su -c 'yum install binutils-arm-linux-gnu gcc-arm-linux-gnu'
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.


Asked: 2013-08-16 21:13:59 +0000

Seen: 2,087 times

Last updated: Aug 17 '13