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.
Dean, > To: address@hidden > From: address@hidden (Dean Vickers) > Subject: xdr in netcdf > Organization: Oregon State University > Keywords: 199608192104.AA11116 In the above message you wrote: > I'm trying to make some software on a > > cpu0: SUNW,UltraSPARC (upaid 0 impl 0x10 ver 0x22 clock 143 MHz) > SunOS Release 5.5 Version Generic [UNIX(R) System V Release 4.0] > > The software uses the netcdf library. > > The link/load step using f77 gives this error, > Undefined first referenced > symbol in file > xdr_enum /usr/local/lib/libnetcdf.a(array.o) > xdr_float /usr/local/lib/libnetcdf.a(cdf.o) > xdr_int /usr/local/lib/libnetcdf.a(array.o) > xdr_vector /usr/local/lib/libnetcdf.a(sharray.o) > xdr_u_long /usr/local/lib/libnetcdf.a(array.o) > xdr_double /usr/local/lib/libnetcdf.a(cdf.o) > xdr_long /usr/local/lib/libnetcdf.a(dim.o) > xdr_opaque /usr/local/lib/libnetcdf.a(array.o) > ld: fatal: Symbol referencing errors. No output written to apak.nog > *** Error code 1 > make: Fatal error: Command failed for target `apak.NOG' > > my manpage for xdr doesn't help me find the library I need to include. > I checked your web faq. > can you help? Add the argument `-lnsl' to your link-lines. The `nsl' library (it stands for "network support library") contains the XDR library. Please let me know if this helps. -------- Steve Emmerson <address@hidden>