title: ndk-build "member ... in archive is not an object"
body: <p>I use this AES library (in C language),<br>
  <a href="http://gladman.plushost.co.uk/oldsite/AES/aes-src-16-04-07.zip" rel="nofollow">http://gladman.plushost.co.uk/oldsite/AES/aes-src-16-04-07.zip</a><br>
  <br>
  I follow this page and use the commds mentioned to compile <i>libaes.a</i>,<br>
  <a href="http://forums.devshed.com/c-programming-42/aes-encrypt-decrypt-in-c-687368.html" rel="nofollow">http://forums.devshed.com/c-programming-42/aes-encrypt-decrypt-in-c-687368.html</a><br></p>
  
  <pre><code>gcc -c -O2 -fomit-frame-pointer aescrypt.c aeskey.c aestab.c aes_modes.c
  ar rcs libaes.a *.o
  </code></pre>
  
  <p>I can compile and run my program using the <i>libaes.a</i> without problem.<br>
  <br>
  However if use <b>ndk-build</b> to compile my program (indeed modified a little),<br>
  I always get this error message and fail to compile...<br></p>
  
  <p><b>"...member <i>aes_modes.o</i> in archive is not an object..."</b><br>
  <br>
  what's wrong with that file?<br>
  Or what's wrong with the process?<br>
  <br>
  my Android.mk :<br></p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  include $(CLEAR_VARS)
  LOCAL_MODULE    := libaes
  LOCAL_SRC_FILES := libaes.a
  include $(PREBUILT_STATIC_LIBRARY)
  include $(CLEAR_VARS)
  LOCAL_MODULE    := hello-jni
  LOCAL_SRC_FILES := hello-jni.c
  LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
  LOCAL_C_INCLUDES :=\
      /android-ndk-r6b/platforms/android-8/arch-arm/usr/include\
      /android-ndk-r6b/samples/hello-jni/jni/libaes
  LOCAL_WHOLE_STATIC_LIBRARIES := libaes
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  
  <p><br></p>