Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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: 64bit intel i7 processor, on a Asus N56VZ running Ubuntu 13.10

Target devices: Beaglebone (both white and black)

share|improve this question
    
find / -name "iostream" 2>/dev/null –  Melon Feb 5 at 20:30
    
Hm, around iostream there should be asterixes. Can someone reformat my comment and delete the current one? –  Melon Feb 5 at 20:32
1  
C++ headers would be provided as a dependency of g++-arm-linux-gnueabihf rather than gcc-arm-linux-gnueabihf I think –  steeldriver Feb 5 at 20:38
    
I did try searching for it but I only find the codes for compiling on my PC (under /usr/include/c++) but not the files for cross-compiling for the ARM devices. –  Sid Feb 5 at 20:41
    
@steeldriver The videos I watched and the documents and blogs I read seemed to indicate that just the gcc would be enough. I just installed the g++ ARM package and I have a folder of c++ dependencies now. I'll give it a try and update back here, thanks –  Sid Feb 5 at 20:46
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.