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.
Xunqiang Bi, >Date: Tue, 27 Jul 1999 10:00:15 +0200 (MET DST) >From: BI XUNQIANG <address@hidden> >Organization: Abdus Salam International Centre for Theoretical Physics >To: Steve Emmerson <address@hidden> >Subject: Re: 19990726: installation: udunits-1.11.7: cc vs. gcc >Keywords: 199907261402.IAA21347 In the above message, you wrote: > When I follows your suggestion to install UDUNITS (no PERL support), > It's OK. Great! > But as I try to read NCEP/NCAR reanalysis (netcdf) data, > the error compiler information is : > > spclima7:18> f77 -o readair readair.o /DATA/bixq/lib/libnetcdf.a > /DATA/bixq/lib/libudunits.a > Undefined first referenced > symbol in file > __eprintf /DATA/bixq/lib/libudunits.a(utlib.o) > ld: fatal: Symbol referencing errors. No output written to readair > > What's eprintf ? __eprintf is a function in the GNU C runtime library. On our system, we would reference that library in the link command like this: f77 -o readair readair.o /DATA/bixq/lib/libnetcdf.a -L/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1 -lgcc -------- Steve Emmerson <http://www.unidata.ucar.edu>