Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8306625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:22:09+00:00 2026-06-08T18:22:09+00:00

I have arm-linux-androideabi-gcc installed in my computer, but when I try to compiler even

  • 0

I have arm-linux-androideabi-gcc installed in my computer, but when I try to compiler even a simple hellow world, it gives error ( I am choosing not to use ndk-build ) . I just want to compile from the command line …

#include <iostream>

using namespace std;

int main (){
    return 0;
}

And I received this error:

error: iostream: No such file or directory

I have the arm-linux-androideabi-gcc in ~/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin .

I have tried including -I ~/android-ndk-r7b/platforms/android-9/arch-arm/usr

I have also tried including -lstdc++ just to see if it works but no …

./arm-linux-androideabi-g++ -o ff first.cpp -I /home/hari/android-ndk-r7b/platforms/android-9/arch-arm/usr -lstdc++
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:22:10+00:00Added an answer on June 8, 2026 at 6:22 pm

    First you need to create the standalone toolchain:

    make-standalone-toolchain.sh --platform=android-14 --install-dir=standalone-toolchain --ndk-dir=$ANDROID_NDK_PATH
    

    export the PATH:

    export PATH=$TOOLCH/standalone-toolchain/bin:$PATH
    

    Then build the file:

    arm-linux-androideabi-g++ -o test-new test.cpp
    

    Note: issue using revision 8b which is the latest version of the NDK: http://code.google.com/p/android/issues/detail?id=35279

    arm-linux-androideabi-g++ -o test-new test.cpp --sysroot=$TOOLCH/sysroot
    -I$TOOLCH/lib/gcc/arm-linux-androideabi/4.6.x-google/include
    -I$TOOLCH/lib/gcc/arm-linux-androideabi/4.6.x-google/include-fixed
    -I$TOOLCH/arm-linux-androideabi/include/c++/4.6
    -I$TOOLCH/arm-linux-androideabi/include/c++/4.6/arm-linux-androideabi
    -I$TOOLCH/sysroot/usr/include
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application which i build using gcc on linux host for ARM
I try to create cross toolchian for arm but have this error: In file
I want to build a static hello world from C using arm-linux-gnueabi-gcc as opposed
I'm trying to cross compile php for arm and have good progress but I'm
On my AT91SAM9RL-EK ARM board, running a Linux 2.6.30 buildroot, I have the following.
I have an ARM kit beside me and a Linux kernel source code patched
I have arm 9 board running linux. I have ported Jamvm and its working
I have a ARM based machine with ubuntu distro on it and it often
I have an ARM project that I'm building with make. I'm creating the list
I have an embedded system (ARM 9263) running an RTOS, IAR tools. The system

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.