Ask Your Question

c++ cross compiler

asked 2013-08-16 16:13:59 -0500

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 gravatar imageJoão M. S. Silva ( 2013-08-17 20:57:11 -0500 )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 gravatar imagembooth ( 2013-08-19 09:40:32 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2013-08-17 10:52:32 -0500

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

Question Tools


Asked: 2013-08-16 16:13:59 -0500

Seen: 2,518 times

Last updated: Aug 17 '13