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 Jonathan, > I have recently run into an issue where MOZART pre-processor for WRF-Chem > will not fully compile. > > I get 50-60 error messages similar to the ones below > > /data/data061/jsmith/MOZART/mo_mozart_lib.f90:1030: undefined reference to > `nf_close' > > I have attached an output of the compilation output. It looks like you need to reverse the order in which the libraries are searched when linking with gfortran, so instead of gfortran -o mozbc ... -lnetcdf -lnetcdff use gfortran -o mozbc ... -lnetcdff -lnetcdf The reason is that the netCDF Fortran90 library, searched with -lnetcdff, depends on the netCDF C library, searched with -lnetcdf. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: LKM-299184 Department: Support netCDF Priority: Normal Status: Closed