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.
Fan Guo, > To: address@hidden > From: address@hidden (Fan Guo) > Subject: xdr library > Organization: University of Colorado at Boulder > Keywords: 199608152134.AA29468 In the above message you wrote: > My name is Fan and I am working for a research group at PAOS/CU. I am trying > to install a software package on a Solaris 2.5 machine. It sounds to me that > the xdr library is part of the netcdf library, but can not be found in our > machine. An implementation of a subset of the XDR library will be placed into the netCDF library by the installation procedure ONLY IF NECESSARY. On a Solaris 2.5 system it is not necessary because an XDR implementation can be found in the network support library `lib/libnsl.*'. When linking netCDF-using programs that are not a part of the netCDF package itself, it is necessary to reference the XDR library that resides on the system. For example, something like the following would be appropriate for linking the program `foo', $ cc -o foo foo.c -L/usr/local/lib -lnetcdf -lnsl Add the `-lnsl' reference to your link lines. Please let me know if this helps. -------- Steve Emmerson <address@hidden>