[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

960819: xdr references in NetCDF



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>