title: Android bitmap native code - linking problem
body: <p>I have a problem when compiling my app, which is inspired from bitmap-plasma. I was calling </p>
  
  <pre><code>    if ((ret = AndroidBitmap_getInfo(env, bitmap, &amp;info)) &lt; 0) {
      LOGE("AndroidBitmap_getInfo() failed ! error=%d", ret);
      return;
  }
  
  if (info.format != ANDROID_BITMAP_FORMAT_RGB_565) {
      LOGE("Bitmap format is not RGB_565 !");
      return;
  }
  
  if ((ret = AndroidBitmap_lockPixels(env, bitmap, &amp;pixels)) &lt; 0) {
      LOGE("AndroidBitmap_lockPixels() failed ! error=%d", ret);
  }
  
         /*****code here***********/
  AndroidBitmap_unlockPixels(env, bitmap);
  </code></pre>
  
  <p>I have included android/bitmap.h in my source file. I am using android-ndk-r5b and sdk-9 on ubuntu 10.10. </p>
  
  <p>I am getting an error </p>
  
  <pre><code> /home/user5432/workspace/bitmapproj/obj/local/armeabi/objs-debug/mybitmap.o : In function Java_com_example_plasma_PlasmaView_renderPlasma
  "undefined reference to AndroidBitmap_getInfo"
  "undefined reference to AndroidBitmap_lockPixels"
  "undefined reference to AndroidBitmap_unlockPixels"
  </code></pre>
  
  <p>The problem is with debug code. But what is the problem? Can anybody has an answer?  </p>