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

[netCDF #HAG-816423]: gfortran compiler errors



Hi Susan,

> I am having great difficulty trying to compile a relatively simple
> fortran program.

You need to add at least "-lcurl" to the end, something like:

  gfortran -I/usr/local/lib64/include jason2read.f 
/usr/local/lib64/lib/libnetcdf.a -o jason2read -lcurl
 
because apparently static libraries are installed rather than shared
libraries, so you need to explicitly reference external libraries
used by netCDF.

If that still doesn't work, determine all the libraries needed for 
compiling and building a Fortran application by running: 

  nc-config --flibs

where "nc-config" is a netCDF utility installed in the same directory
as ncdump and ncgen.  To see all the flags supported by nc-config,
run

  nc-config --all

--Russ

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



Ticket Details
===================
Ticket ID: HAG-816423
Department: Support netCDF
Priority: Normal
Status: Closed