title: Fixing Eclipse errors when using Android NDK and std::vector
body: <p>I'm using eclipse to develop an  android app that also uses the ndk. I vectors in my app and I've done the necessary stuff to get them by including</p>
  
  <p>APP_STL := stlport_static</p>
  
  <p>In my Application.mk</p>
  
  <p>Everything is working fine it compiles and runs but Eclipse keeps giving me errors when I use the vectors</p>
  
  <pre><code>std::vector&lt;int&gt; blah
  </code></pre>
  
  <p>for example creates an error. If I delete the error and keep going it compiles and runs fine.</p>
  
  <p>I've added 
  ${NDKROOT}/sources/cxx-stl/gnu-libstdc++/include</p>
  
  <p>In my project config under C++ General -> Paths and Symbols -> include </p>
  
  <p>It resolves <code>#include &lt;vector&gt;</code> fine (before I added the path above I had an error for this) but I still get errors using the vectors. </p>
  
  <p>How can I get eclipse to stop giving me errors for this? </p>
  
  <p>EDIT:</p>
  
  <p>example error: <code>Symbol 'vector' could not be resolved</code>  </p>
  
  <p>EDIT 2:</p>
  
  <p>I tried to add </p>
  
  <pre><code>using namespace std;
  </code></pre>
  
  <p>and then using vector blah and that causes a different error:</p>
  
  <blockquote>
    <p>Invalid template arguments</p>
  </blockquote>