title: I compiled the LAPACK and BLAS but my system can not recognize the library
body: <p>I am working on a project written in a mix of Fortran 90 and Fortran 77 and now need to   link the LAPACK/BLAS libraries, from netlib.org, to the project, all in a Linux environment. I used the gfortran compiler flags <code>OPTS = -O2 -fPIC -m64</code> in the given <code>Makefile</code>, and then made it using</p>
  
  <pre><code>make blaslib
  make
  </code></pre>
  
  <p>And it finished normally, or at least I think so.</p>
  
  <p>Then, I copied the files in <code>/usr/local/lib</code> and <code>/usr/local/bin/</code> and <code>/usr/local/lib64/</code>
  but it didn't work. I even used the option <code>-L/path/to/lapack/liblapack.a</code> and it didn't work also.</p>
  
  <p>When I compile my code, I get the following error:</p>
  
  <pre><code>qrB.o: In function `qrfactorizeb_':
  qrB.f90:(.text+0x64f): undefined reference to `zgeqp3_'
  collect2: ld returned 1 exit status
  make: *** [run] Error 1
  </code></pre>
  
  <p>I am really unsure what to make of this error. I tested it in 3 other workstations and it didn't help! Can anyone help me?</p>