title: lgfortran not found
body: <p>I am using Ubuntu 10.04 and trying to compile some code that uses gfortran. At some point Makefiles does:</p>
  
  <pre><code>-L. -lgfortran 
  </code></pre>
  
  <p>and I get the error</p>
  
  <pre><code>/usr/bin/ld: cannot find -lgfortran
  </code></pre>
  
  <p>although it is installed:</p>
  
  <pre><code>ldconfig -p  |  grep   fortran
      libgfortran.so.3 (libc6,x86-64) =&gt; /usr/lib/libgfortran.so.3
  </code></pre>
  
  <p>How can I fix it?</p>
  
  <p>P.S: The Makefile:</p>
  
  <pre><code>## FLAGS
  
  CC:= gcc
  C++:= g++
  CFLAGS:= -c -O -Dintel -g 
  FC:= gfortran
  FFLAGS:= -c -O -cpp -g
  LD:= g++
  LDFLAGS:= -O
  
  
  WETTER_CGAL_FLAGS:=  -g
  
  
  #WETTER-Data
  WETTER_cgal: weather.cpp surface_alg.h $(WETTER_CGAL_OBJECTS) WATT_interface.h data.cpp
      $(C++) $(WETTER_CGAL_FLAGS) -c weather.cpp -frounding-math
      $(C++) -c data.cpp -frounding-math 
      $(LD) $(WETTER_CGAL_OBJECTS) weather.o data.o -o WETTER_cgal -L. -lgfortran -lgmp -lCGAL -frounding-math -fp-model
  </code></pre>