title: Linking Libraries using f2py
body: <p>I have a fortran program that uses some library files. I am trying to link them along with the module file being created.</p>
  
  <p>The library file I am trying to link is called <code>ulib.a</code> and is located in the directory <code>/home/replace/lib/</code></p>
  
  <p>The command I am using is:</p>
  
  <pre><code>f2py -L/home/replace/lib/ -lulib.a -c main.f -m progs
  </code></pre>
  
  <p>I am getting the following error:</p>
  
  <pre><code>/usr/bin/ld: cannot find -lulib.a
  collect2: ld returned 1 exit status
  /usr/bin/ld: cannot find -lulib.a
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>I would appreciate any help!</p>