title: Linux using lapack library
body: <p>I have an error making a code project because of what I believe is a missing routine from lapack: </p>
  
  <pre><code>HomographyInit.cc:(.text+0x385): undefined reference to `dgesvd_'
  </code></pre>
  
  <p>I think I need to add lapack library somehow to my Makefile. Here is part of my Makefile: </p>
  
  <pre><code>CC = g++
  COMPILEFLAGS = -I MY_CUSTOM_INCLUDE_PATH -D_LINUX -D_REENTRANT -Wall  -O3 -march=nocona -msse3
  LINKFLAGS = -L MY_CUSTOM_LINK_PATH -lGVars3 -lcvd 
  </code></pre>
  
  <p>I tried doing the following to no avail:</p>
  
  <pre><code>CC = g++
  COMPILEFLAGS = -I MY_CUSTOM_INCLUDE_PATH -D_LINUX -D_REENTRANT -Wall  -O3 -march=nocona -msse3
  LINKFLAGS = -L MY_CUSTOM_LINK_PATH -lGVars3 -lcvd **-llapack** 
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>make
  ...
  /usr/bin/ld: cannot find -llapack
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>How can I add lapack to my project? I am pretty sure I installed it correctly, though would be willing to double-check that somehow.</p>