title: NDK-Use of .a file in C file
body: <p>I'm trying to use a .a file in my C code to use in Java (sorry for my bad English). I created myself a  static library named <code>libtest.a</code>. now when i include files present in that library in gives me error as no such file or directory. </p>
  
  <p>i have put the <code>libtest.a</code> in the same folder where my <code>Android.mk</code> and <code>Application.mk</code> resides</p>
  
  <p>C-code:</p>
  
  <pre><code>#include &lt;string.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;jni.h&gt;
  #include &lt;exp.h&gt; //the header in libtest.a
  </code></pre>
  
  <p>And this is my makefile:</p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  
  include $(CLEAR_VARS)
  LOCAL_MODULE := libtest
  LOCAL_SRC_FILES := libtest.a
  
  include $(PREBUILT_STATIC_LIBRARY)
  
  include $(CLEAR_VARS)
  LOCAL_MODULE := socket
  LOCAL_SRC_FILES := source/interface.c source/file.c
  LOCAL_LDFLAGS += libtest.a  
  
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  
  <p>When I compile it, I get the following error</p>
  
  <pre><code>error: exp.h: No such file or directory
  </code></pre>
  
  <p>I want to use the .a without it's code so I hope I'm clear enough.</p>