title: Setting up C++11 (std::thread) for NDK with ADT/Eclipse
body: <p>I have been trying to use C++11. I am developing an android project and i want to use std::mutex. Along with OpenCV
  But no matter what I do, I just cant seem to fix the <code>Type 'mutex' could not be resolved</code>
  error.</p>
  
  <p>I have tried following the tutorials i found on SO and other places.
  <a href="https://stackoverflow.com/questions/9131763/eclipse-cdt-c11-c0x-support">LINK1</a> <a href="https://stackoverflow.com/questions/8763937/c0x-compiles-but-eclipse-editor-errors-even-with-gnu0x-discovery">LINK2</a> <a href="https://stackoverflow.com/questions/8564544/build-c0x-features-with-eclipse">LINK3</a><a href="https://stackoverflow.com/questions/8312854/eclipse-indexer-cant-resolve-shared-ptr">LINK4</a></p>
  
  <ol>
  <li>ADT v22.3.0-887826</li>
  <li>Installed C/C++ compilers (CDT)  </li>
  </ol>
  
  <p>Following so many tutorials, it has become a real mess now. So I will explain my current settings</p>
  
  <ul>
  <li>Project > Properties > C/C++ Build > Tool  Chain Editor
  
  <ul>
  <li>Current Tool Chain is "Cross GCC"</li>
  <li>Current Builder is "Android Builder"</li>
  </ul></li>
  <li><p>Project > Properties > C/C++ Build > Discovery Options </p>
  
  <ul>
  <li>Compiler invocation command is "gcc"</li>
  <li>Compilter Invocation argments are -E -P -v -dD "${plugin_state_location}/specs.c     -std=c++11"</li>
  </ul></li>
  <li><p>Project > C/C++ General > Paths and Symbols > # Symbols tab</p>
  
  <ul>
  <li>Symbol = __cplusplus and Value = 1</li>
  </ul></li>
  </ul>
  
  <p>In my Application.mk file I have the following</p>
  
  <pre><code>APP_STL := gnustl_static
  APP_USE_CPP0X := true
  APP_CPPFLAGS := -std=c++11 -frtti -fexceptions
  APP_ABI := armeabi-v7a
  APP_PLATFORM := android-8
  </code></pre>
  
  <p>I tried to change the <strong>cplusplus symbol's value to 201103L
  and tried __GXX_EXPERIMENTAL_CXX0X</strong> with an empty value</p>
  
  <p>But nothing seems to work, What am I doing wrong??</p>
  
  <p>Any help is appreciated!</p>