title: Getting error: 'shared_ptr' in namespace 'std' does not name a type
body: <p>I am trying to compile an android application in android studio (ndk r10d) which uses some C++ code. I needed C++11 so I added <code>-std=gnu++11</code> (I need <code>gnu++11</code> instead of <code>c++11</code> for an extension I am using). I am using the stlport stl, due to other libraries I am using that use this stl library.
  So my cFlags and stl parameters in the build.gradle file looks like this:</p>
  
  <pre><code>stl "stlport_static"
  cFlags " mylib1.a mylib2.a ... -fexceptions -frtti -std=gnu++11"
  </code></pre>
  
  <p>I also have included memory: <code>#include &lt;memory&gt;</code></p>
  
  <p>When trying to compile I receive this error:</p>
  
  <pre><code>'shared_ptr' in namespace 'std' does not name a type
  </code></pre>
  
  <p>I have been using the boost implementation for the smart pointers till now but with the move to c++11 I would rather use the standard implementation.</p>