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

20030323: UDUNITS build on RedHat 7.2 Linux: udunits.inc



Qinghai Liao,

> To: "address@hidden" <address@hidden>
> From: "iaplqh" <address@hidden>
> Organization: ?

The above message contained the following:

> I have compiled the udunits and used it to decode the
> olr_monthly_.nc(CDC data) ,f77 readolr.f -lnetcdf -ludunits, but the
> compiler failed to compiled the udunits.inc(The compiler did not know
> the #ifnfef....#endif),Can you help me to fix this bug? My system is
> g77,linux Redhat7.2.

Unfortunately, no standard exists for the naming of a Fortran file that
is included by the preprocessor. Apparently, the extension ".inc" causes
problems on your system.

Try changing the name of the file from "udunits.inc" to "udunits.F".
You will also have to change the name in the following files:

    /lib/udunits.3fi
    /lib/Makefile.in
    configure.in
    RELEASE_NOTES

Then, rebuild and reinstall the UDUNITS package.

Then, change the name from "udunits.inc" to "udunits.F" in your program
and recompile it.

> Thanks a lot!
> Qinghai Liao

Regards,
Steve Emmerson


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.