Installed android-ndk-r7 and tried to compile the .cpp file.
#include <iostream> using namespace std; int main ( int argc, char ** argv) { cout <<"Hello World.."<<endl; }
The following command is executed: I went into the jni folder and executed
Received the following error:
/home/jelari/Desktop/androidDevelopment/android-ndk-r7/DCF/jni/test1.cpp:1:20: error: iostream: No such file or directory /home/jelari/Desktop/androidDevelopment/android-ndk-r7/DCF/jni/test1.cpp: In function 'int main(int, char**)': /home/jelari/Desktop/androidDevelopment/android-ndk-r7/DCF/jni/test1.cpp:8: error: 'cout' was not declared in this scope /home/jelari/Desktop/androidDevelopment/android-ndk-r7/DCF/jni/test1.cpp:8: error: 'endl' was not declared in this scope make: *** [/home/jelari/Desktop/androidDevelopment/android-ndk-r7/DCF/obj/local/armeabi/objs/test1/test1.o] Error 1
What am I doing wrong?
My Android.mk file looks like this:
# A simple test for the minimal standard C++ library
and the Application.mk file looks like this:
Please indicate a mistake?
Whoami
source share