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

[UDUNITS #AAI-259957]: Unable to compile readGeneral.F

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.


  • Subject: [UDUNITS #AAI-259957]: Unable to compile readGeneral.F
  • Date: Thu, 01 Sep 2016 10:46:14 -0600

Ashwin,

We're not responsible for file "readGeneral.F".

This previous inquiry on the same topic might help:

    
https://andy.unidata.ucar.edu/esupport/staff/index.php?_m=tickets&_a=viewticket&ticketid=20890&highlight=--+Mixed+--&ticketsearchid=5120

> I am trying to compile this file -
> http://www.esrl.noaa.gov/psd/data/gridded/readgeneral.F
> 
> I am getting these errors -
> http://www.esrl.noaa.gov/psd/data/gridded/readgeneral.F
> 
> Any suggestions would be appreciated.
> Regards,
> Ashwin.
> 
> gfortran -g -c -O2 -fcheck=bounds readgeneral.F -I/usr/local/include
> Warning: /usr/local/include/udunits.inc:25: Illegal preprocessor directive
> Warning: /usr/local/include/udunits.inc:25: Illegal preprocessor directive
> Warning: /usr/local/include/udunits.inc:25: Illegal preprocessor directive
> Warning: /usr/local/include/udunits.inc:25: Illegal preprocessor directive
> /usr/local/include/udunits.inc:33:6:
> 
> UD_POINTER utmake
> 1
> Error: Unclassifiable statement at (1)
> readgeneral.F:183:26:
> 
> integer UTMAKE,UTDEC,uttime
> 1
> Error: Symbol ‘utdec’ at (1) already has basic type of INTEGER
> /usr/local/include/udunits.inc:33:6:
> 
> UD_POINTER utmake
> 1
> Error: Unclassifiable statement at (1)
> readgeneral.F:382:21:
> 
> integer UTDEC    ! Declare the functions.
> 1
> Error: Symbol ‘utdec’ at (1) already has basic type of INTEGER
> readgeneral.F:383:26: Error: Symbol ‘uticaltime’ at (1) already has basic
> type of INTEGER
> /usr/local/include/udunits.inc:33:6:
> 
> UD_POINTER utmake
> 1
> Error: Unclassifiable statement at (1)
> readgeneral.F:792:26:
> 
> integer UTMAKE,UTDEC,utcaltime
> 1
> Error: Symbol ‘utdec’ at (1) already has basic type of INTEGER
> /usr/local/include/udunits.inc:33:6:
> 
> UD_POINTER utmake
> 1
> Error: Unclassifiable statement at (1)
> gfortran -o readgeneral readgeneral.o  -L/usr/local/lib -lnetcdff
> -L/usr/local/lib -lnetcdf -lnetcdf
> gfortran: error: readgeneral.o: No such file or directory
> ERROR: compilation of <tool> failed... exit
> http://www.esrl.noaa.gov/psd/data/gridded/readgeneral.F

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: AAI-259957
Department: Support UDUNITS
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.