title: Android NDK: "fatal error: 'thread' file not found"
body: <p>I am trying to compile a NDK only app (command line app).
  I was using C++11 for many things, and I recently added threads:</p>
  
  <pre><code>#include &lt;thread&gt;
  </code></pre>
  
  <p>Now my compilation is not working, even though it works for map/deque/vector/.... 
  With the following error:</p>
  
  <pre><code>jni/common.h:24:10: fatal error: 'thread' file not found
  #include &lt;thread&gt;
           ^
  1 error generated.
  </code></pre>
  
  <p>This is my <code>Application.mk</code>:</p>
  
  <pre><code>APP_PLATFORM := android-18
  APP_CPPFLAGS := -Wall -frtti -fexceptions -fpermissive
  APP_ABI := armeabi-v7a
  
  APP_STL:=stlport_static
  NDK_TOOLCHAIN_VERSION := clang
  APP_OPTIM := release
  </code></pre>
  
  <p>This is my <code>Android.mk</code>:</p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  include $(CLEAR_VARS)
  LOCAL_MODULE     := XXXX
  
  LOCAL_C_INCLUDES := $(LOCAL_PATH)
  LOCAL_C_INCLUDES += $(LOCAL_PATH)/XXXXX
  
  LOCAL_SRC_FILES  := ....
  
  LOCAL_C_FLAGS   := -O3 -std=c++11
  LOCAL_CXX_FLAGS := -O3 -std=c++11
  
  LOCAL_LDLIBS    := -llog
  
  include $(BUILD_EXECUTABLE)
  </code></pre>
  
  <p>I am using NDK 10d.</p>