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.
Dear Yamasaki, >Date: Fri, 08 Aug 2003 16:24:31 +0100 >From: "Yoshihiro Yamasaki" <address@hidden> >Organization: ? >To: Steve Emmerson <address@hidden> >Subject: Re: udunits.inc The above message contained the following: > Here I am again with a new problem. The compilation & test > was just fine. However, when trying to use it...I got the > following : > > ===================================================== > pgf90 new.for > /home2/yamazaki/usr/local/netcdf/netcdf-3.5.0/lib/libnetcdf.a > new.for: > PGF90-S-0021-Label field of continuation line is not blank > (/home2/yamazaki/usr/local/udunits-1.11.7/include/udunits.inc: > 27) > PGF90-S-0021-Label field of continuation line is not blank > (/home2/yamazaki/usr/local/udunits-1.11.7/include/udunits.inc: > 28) > PGF90-S-0021-Label field of continuation line is not blank > (/home2/yamazaki/usr/local/udunits-1.11.7/include/udunits.inc: > 29) > PGF90-S-0034-Syntax error at or near end of line > (/home2/yamazaki/usr/local/udunits-1.11.7/include/udunits.inc: > 37) > PGF90-W-0119-Redundant specification for utdec (new.for: > 249) > PGF90-W-0119-Redundant specification for uttime (new.for: > 249) > 0 inform, 2 warnings, 4 severes, 0 fatal for > gridread > ----->>> > > LOOKING AT THE PROBLEM I COMMENTED THOSE LINES OF > > udunits.inc FILE : > > c #ifndef PTR > c # define PTR integer > c #endif The file "udunits.inc" is designed to be processed by the C preprocessor before being compiled by the Fortran compiler. Your Fortran compile might have an option to do this. Or you might try renaming the file so that the Fortran compiler will call the C preprocessor on it (e.g., "udunits.F"). > EVEN SO, I GOT OTHER PROBLEMS : > PGF90-W-0119-Redundant specification for utdec (new.for: > 249) > PGF90-W-0119-Redundant specification for uttime (new.for: > 249) > PGF90-W-0119-Redundant specification for utdec (new.for: > 431) > PGF90-W-0119-Redundant specification for uticaltime > (new.for: 432) > PGF90-W-0119-Redundant specification for utdec (new.for: > 795) > PGF90-W-0119-Redundant specification for utcaltime > (new.for: 795) The above warnings can be safely ignored. > new.o(.text+0x42e): In function `gridread_': > : undefined reference to `utmake_' The Fortran compiler is not finding the Fortran routines in the UDUNITS library. Do they exist? Please send me the output of the command nm -g /home2/yamazaki/usr/local/netcdf/netcdf-3.5.0/lib/libnetcdf.a | grep utmake Regards, Steve Emmerson