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.
Pete, > Thank you for your reply. Could you help me link the udunits library on > compilation then? Is it similar to linking it with the netcdf libraries, > like here: > http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-c/Compiling.html When compiling (but not linking) a UDUNITS-using Fortran program, you need to tell the compiler where to find the file "udunits.inc". This is done using the "-I <dir>" option. When linking, you need to tell the compiler to use the UDUNITS library. This is done using the "-L<dir> -ludunits" options. > Again, thanks for the help. > > -- > Pete Effertz > ISU Meteorology student > ISU chapter - AMS Regards, Steve Emmerson Ticket Details =================== Ticket ID: TMY-192575 Department: Support UDUNITS Priority: Normal Status: Closed