title: Android ndk-build iostream: No such file or directory
body: <p>I'm having problem with compiling cpp file using ndk-build tool (windows 7 with cygwin)
  Error appears when I try to compile cpp file with #include:</p>
  
  <pre><code>jni/native.cpp:5:20: error: iostream: No such file or directory
  </code></pre>
  
  <p>Here is my cpp file:</p>
  
  <pre><code>#include &lt;jni.h&gt;
  #include &lt;string.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;android/log.h&gt;
  #include &lt;iostream&gt;
  
  #define DEBUG_TAG "NDK_SampleActivity"
  #define  LOG_TAG    "hellojni"
  #define  LOGI(...)  __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
  #define  LOGE(...)  __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)
  
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  void Java_com_test_ndk_SampleActivity_helloLog(JNIEnv* env, jobject thisobj, jstring logThis)
  {
      jboolean isCopy;
  
      const char * szLogThis = env-&gt;GetStringUTFChars(logThis, &amp;isCopy);
  
      __android_log_print(ANDROID_LOG_DEBUG, DEBUG_TAG, "NDK:LC: [%s]", szLogThis);
  
      env-&gt;ReleaseStringUTFChars(logThis, szLogThis);
  }
  
  
  
  #ifdef __cplusplus
  }
  #endif
  </code></pre>
  
  <p>And here is my Android.mk file:</p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  
  include $(CLEAR_VARS)
  
  APP_STL:=stlport_static 
  
  LOCAL_LDLIBS := -llog
  
  LOCAL_MODULE    := swingbyte-android
  
  LOCAL_SRC_FILES := native.cpp
  
  LOCAL_C_INCLUDES := $(LOCAL_PATH)/include-all
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  
  <p>I have iostream file in android ndk folder (NDK_ROOT\sources\cxx-stl\gnu-libstdc++\include) but I don't have any idea how to tell compiler to look for iotream (and other standart header files) in that folder.</p>
  
  <p>It seems to that I'm missing one or few environment variables, or some comiler flags. </p>