[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #KMB-390308]: NetCDF 3.6.2 on 64bit Linux with gfortran:



Hi Steve,

I think you just need to specify the libraries last on the gfortran invocation,
because
gfortran (and most other compilers when used to link objects and libraries) are
sensitive to the order of arguments.  So instead of:

  gfortran -Wall -I/usr/local/include -L/usr/local/lib -lnetcdf -o ZonalAverage
  ZonalAverage.f90

try

  gfortran -Wall -I/usr/local/include -o ZonalAverage ZonalAverage.f90
  -L/usr/local/lib -lnetcdf

--Russ




Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: KMB-390308
Department: Support netCDF
Priority: Normal
Status: Closed