title: Undefined reference to gfortran_runtime_error
body: <p>I would like to run a model is written Fortran90 under Ubuntu 14.04. I use gfortran 95 compiler (gfortran 4:4.8.2-1ubuntu6). The required netCDF libraries (netCDF C and Fortran netCDF) are installed as suggested in: <a href="http://www.unidata.ucar.edu/software/netcdf/docs/" rel="nofollow">http://www.unidata.ucar.edu/software/netcdf/docs/</a>. The netcdf is built as shared library so libnetcdf.so and libnetcff.so files there are in the library directory.  The libgfortran3 4.8.2-19ubuntu1 is installed for GNU fortran application linked against the shared library.
  The LDFLAGS is set in the compiler_options.inc file by the following way:</p>
  
  <pre><code>INCDF=-I$(NCPATH)/include
  LNCDF=-L$(NCPATH)/lib -lnetcdff -lnetcdf
  LDFLAGS=$(INCDF) $(LNCDF)
  </code></pre>
  
  <p>When I compile the model I get the following messages:</p>
  
  <pre><code>/home/Beata/kid_a_setup/src/test_cases_2d.f90:1446: undefined reference to `_gfortran_runtime_error_at
  </code></pre>
  
  <p>Could someone explain me what causes the error and how I can fix it?</p>