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.
Rick, > A few more tests confirm that it works just as well to refer just once to the > udunits2 and expat libraries, > but this must be before all the netcdf libraries (and after my local > 'cdcnetcdf' library), as in > > cc nc.transfer.ascii.c -L/home/rdanielson/prog/include.netcdf/lib -lcdcnetcdf > -L/home/rdanielson/soft/udunits/lib -ludunits2 -lexpat > -L/home/rdanielson/soft/netcdf/lib -lnetcdf -L/usr/lib64 -lcurl > -L/usr/kerberos/lib -L/usr/kerberos/lib64 -lssl -lcrypto -lgssapi_krb5 -lkrb5 > -lcom_err -lk5crypto -lresolv -ldl -lz -lgssapi_krb5 -lkrb5 -lk5crypto > -lcom_err -lresolv -L/usr/kerberos/lib -L/usr/kerberos/lib64 -lidn -lssl > -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv > -ldl -lz -lz -lm I'm surprised that you can't put the netCDF, UDUNITS, and expat library references just near the end of the link command. I'm glad you found a way to build your application, though. > Cheers again, > Rick Regards, Steve Emmerson Ticket Details =================== Ticket ID: ALQ-202022 Department: Support UDUNITS Priority: Normal Status: Closed