title: Android NDK in Eclipse Type size_t could not be resolved
body: <p>I'm getting the follow error: "Type 'size_t' could not be resolved" on android ndk project, but I already added the library paths:</p>
  
  <pre><code>/Users/ademar/android-ndk-r8e/platforms/android-8/arch-arm/usr/include
  /Users/ademar/android-ndk-r8e/sources/cxx-stl/stlport/stlport
  /Users/ademar/android-ndk-r8e/sources/cxx-stl/gnu-libstdc++/4.7/include
  </code></pre>
  
  <p>so i not understand why this error.</p>
  
  <hr>
  
  <p>code where I get the error:</p>
  
  <pre><code>static inline bool simplejson_wcsnlen(const wchar_t *s, size_t n)
  </code></pre>
  
  <hr>
  
  <p>I added each one of headers described <a href="http://en.cppreference.com/w/cpp/types/size_t" rel="noreferrer">here</a> but still not working.  </p>
  
  <hr>
  
  <p>I Tried the follow:</p>
  
  <pre><code>#include &lt;string.h&gt;
  #include &lt;jni.h&gt;
  #include &lt;android/log.h&gt;
  #include &lt;iostream&gt;
  #include &lt;stdio.h&gt;
  
  extern "C" {
      JNIEXPORT jstring JNICALL Java_xxx_getStringFromJNI(JNIEnv* env, jobject thiz, jstring param) {
          size_t x;
          return env-&gt;NewStringUTF("test");
      }
  }
  </code></pre>
  
  <p>and it also not work...</p>