Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

[UDUNITS #PPR-301422]: Help,how to install install UDUNITS



Dear Liu Guangping,

> Thank you for your help! I have succeeded to install UDUNITS package .However,I've got problems compiling 'readgeneral.f' from CDC. The error file is in attachment.
> 
> I have tried to change
> 
> include '/usr/local/src/udunits/include/udunits.inc'
> 
> to
> 
> #include "/usr/local/src/udunits/include/udunits.inc"
> 
> But,that also can't.

Because Fortran-77 does not have a standard mechanism for including
other files, the file "udunits.inc" is designed to be included by
the Fortran preprocessor (which is the same as the C preprocessor).
This means that the file "readgeneral.f" should use the following
statement:

#include <udunits.inc>

Also, the Fortran compiler, g77, should be told to preprocess the
file "readgeneral.f".  This can be done by renaming the file to
"readgeneral.F" and by using the option "-I$UDUNITS_INSTALL/include"
--- where $UDUNITS_INSTALL is the installation directory of the 
UDUNITS package. 

So, do the following: 1) modify the "include" statements in the
file; 2) rename the file; and 3) use g77's "-I..." option.

> Thank you very much!  Hoping to hear from you soon.Wish best regards! Yours respectfully,Liu Guangping
> _________________________________________________________________
> åäéçåæççïlive mailåæçääæçä
> http://get.live.cn/product/mail.html


Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: PPR-301422
Department: Support UDUNITS
Priority: Normal
Status: Closed


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690