2
votes

Problems installing gcc for cross compiling for ARM

I've been trying to install the gcc-arm-linux-fnueabi package, and I've done it a few times by a few different methods but I always seem to be missing the c++ folder in the includes directory.

To install, I used:

sudo apt-get install gcc-arm-linux-gnueabihf

and after the installation completes, I have the arm-linux-gnueabi and arm-linux-gnueabihf folders in my /usr directory. When I go into the /usr/arm-linux-gnueabi/include folder though, there's no c++ folder as I expect there to be, so headers such as iostream, etc. are missing. Same goes for within the arm-linux-gnueabihf directory.

Does anyone know what might be causing this? Did I miss something, perhaps? I'm fairly new to cross compiling but all the documentation I've studied indicates that there should be a c++ folder among the includes, and without it, my attempts to compile even simple test codes fail, since even the iostream header is not available.

My machine: 32 &64 bit intel i5 processor, on a Asus running Ubuntu 14.10

Target devices: Beaglebone ( black)

1
According to Ubuntu, it's presumably installed GCC exactly as requested; G++ is in a separate package.Notlikethat

1 Answers

0
votes

Use eclipse and the set path to /usr/bin and run a program see if it gives any error