[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20010724: missing __eprintf
- Subject: 20010724: missing __eprintf
- Date: Tue, 24 Jul 2001 08:57:37 -0600
khseol,
> To: <address@hidden>
> From: =?ks_c_5601-1987?B?vLOw5sjx?= <address@hidden>
> Subject: question
> Organization: =?ks_c_5601-1987?B?seK788O7ILz2xKG/ubq4sPo=?=
> Keywords: 200107240829.f6O8TC100563 UDUNITS
The above message contained the following:
> I have run udunits library on Sun 5.6 system.
> But I have had error message like this "
>
> undefined first referenced
> symbol in file
>
> --eprintf
> /home3/NCEP/ncep/uduni
> ts-1-11/lib/libudunits.a(utlib.o)
The symbol "__eprintf" is part of the GNU C runtime library. Apparently,
the GNU C compiler was used to build your UDUNITS library. The native
Fortran-90 compiler, f90, does not know about the GNU C runtime library.
You must tell your linker to search the GNU C runtime libary. For
example:
f90 ncep_hgt_1999.f -L/home3/NCEP/ncep/netcdf-3.4/lib \
-L/home3/NCEP/ncep/udunits-1.11.7/lib -lnetcdf -ludunits \
-I/home3/NCEP/ncep/udunits-1.11.7/include \
-I/home3/NCEP/ncep/netcdf-3.4/include \
-L/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2 -lgcc
Alternatively, you could rebuild the UDUNITS library using the native
development environment rather than the GNU development environment.
Regards,
Steve Emmerson <http://www.unidata.ucar.edu>