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

[UDUNITS #NDS-204592]: udunits(3): syntax error:

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 #NDS-204592]: udunits(3): syntax error:
  • Date: Wed, 29 Apr 2009 13:28:33 -0600

Daniel,

> > Did you compile the UDUNITS package on the  Ubuntu 8.04 system with the
> > C macro "pgiFortran" defined? >
> 
> Yes. Without the -DpgiFortran flag, some of the functions in the
> library were undefined during link time.

The "pgiFortran" macro told the C compiler to use the Fortran-calling-C 
conventions of the PGI Fortran compiler.  Those conventions *should* be the 
same as the ones of the ifort(1) compiler (at least they were).

Did you call the Fortran function UTOPEN(3f) before you called the function 
UTDEC(3f)?

> Thanks,
> 
> Daniel.

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: NDS-204592
Department: Support UDUNITS
Priority: Normal
Status: Closed