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

Re: 19990524: problem with UDUNITS: type of PTR

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: Re: 19990524: problem with UDUNITS: type of PTR
  • Date: Mon, 24 May 1999 10:55:15 -0600

Lianmei,

> To: address@hidden
> From: Lianmei Gao <address@hidden>
> Subject: problem with UDUNITS
> Organization: Rosenstiel School of Marine and Atmospheric Science 
> (RSMAS)/University of Miami
> Keywords: 199905241550.JAA27700

In the above message, you wrote:

> In the header file udunits.inc and the main program, all pointer variables
> are defined as interger*4. I didnot change anything for their use on a DEC
> alpha machine.

I should have said to change the default definition of PTR in file
"lib/udunits.inc" from "integer" to "integer*8" for your system
(rather than to "unsigned long" -- which won't compile because it's
not Fortran).  This assumes that your code includes "udunits.inc" and
declares all pointers to be of type PTR.

--------
Steve Emmerson   <http://www.unidata.ucar.edu>