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++
Look at the error:
iostream: No such file or directory
#include "iostream"
should be #include #include <iostream>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With