This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
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