title: "loading shared libraries" error using VLFeat in C
body: <p>I am trying to use VLFeat library in C, as given on the website
  <a href="http://www.vlfeat.org/gcc.html" rel="nofollow">http://www.vlfeat.org/gcc.html</a>.</p>
  
  <p>I downloaded and installed the library. I use the <code>glnxa64</code> architecture. The library is located at <code>/A/B/C/vlfeat-0.9.18</code></p>
  
  <p>My code is as follows:</p>
  
  <pre><code>    extern "C" {
      #include &lt;vl/generic.h&gt;
      #include &lt;vl/sift.h&gt;
      }
  
      int main (int argc, const char * argv[]) 
      {
      VL_PRINT ("Hello world!") ;
      return 0;
      }
  </code></pre>
  
  <p>I compile my code using the following statement,</p>
  
  <pre><code>g++ main.cpp -o vlfeat-test -I/A/B/C/vlfeat-0.9.18 -L/A/B/C/vlfeat-0.9.18/bin/glnxa64/ -lvl
  </code></pre>
  
  <p>But when I run it, I get the following error</p>
  
  <pre><code>./vlfeat-test: error while loading shared libraries: libvl.so: cannot open shared object file: No such file or directory
  </code></pre>