title: Jni and shared libraries
body: <p>I have made a program in Java that calls to some functions in native language C. Made a shared library of that C function file and made a shared library, and all worked perfectly. </p>
  
  <p>My problem is when I try to call other functions for example in PBC (Pairing Based Cryptography) library. The C files that are in the shared library include the required .h files for knowing the functions in PBC but I can't use them, I don't know why. What should I do? How can I call functions that are in another libraries?</p>
  
  <p>Java code for loading the libraries.</p>
  
  <pre><code>static {
  
      System.loadLibrary("myLibrary");
      System.loadLibrary("pbc");
  }
  </code></pre>
  
  <p>Error when executing my own Java program: </p>
  
  <pre><code>undefined symbol: pairing_init_set_buf
  </code></pre>