[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 20051217: UDUNITS - udunits
- Subject: Re: 20051217: UDUNITS - udunits
- Date: Mon, 19 Dec 2005 09:18:19 -0700
Yolande,
> To: address@hidden
> From: "Yolande Serra" <address@hidden>
> Subject: UDUNITS - udunits
> Organization: University of Arizona
> Keywords: 200512162223.jBGMNFTT025707
The above message contained the following:
> Institution: University of Arizona
> Package Version: udunits 1.12.3
> Operating System: OS X 10.4.3
> Hardware Information: Dual 2 GHz Power PC G5
> Inquiry: when I try to compile a fortran code that calls both udunits and
> netcdf libraries I get the following error:
>
> serra% g77 -I/sw/include ncep_clim.f get_time.f handle_err.f -o ncep_clim
> -L/sw/lib -lnco -lnetcdf -ludunits
> udunits.inc: In program `ncep_clim':
> udunits.inc:32:
> UD_POINTER utmake
> 1 2
> Unrecognized statement name at (1) and invalid form for assignment or
> statement-function definition at (2)
> serra%
>
>
> My g77 (3.4.3) and udunits versions are the same that I ran on my old G4 Mac,
> and the code compiles on this mac. The main thing that has changed is the
> machine itself.
>
> Any ideas?
It appears that the file /sw/include/udunits.inc doesn't define the
macro UD_POINTER. It should. I suggest that you edit that file and
define UD_POINTER to be a Fortran type that can hold a pointer (e.g.,
INTEGER). The type must be the same size as a pointer on the computer.
> Thanks, Yolande Serra
> address@hidden
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.