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

Re: 19980715: Fortran interface: NF_INT_IS_C_... not defined



Reinhard,

> To: address@hidden
> From: "Reinhard W. Stotzer" <address@hidden>
> Subject: netCDF 3.4 Fortran interface
> Organization: Sandia National Laboratory
> Keywords: 199807151505.JAA17877

In the above message, you wrote:

>    I'm having problems building the netCDF 3.4 Fortran interface
> on a CRAY J90, Unicos 8.0.4. When I do a 'make all' in the
> src/fortran directory, I get the following error:
> 
> c89 -c -O -I../libsrc  -DNDEBUG  fort-attio.c
> cc-315 c89: ERROR fort-attio.c, Line = 6, File = ./ncfortran.h, Line = 27
>   The include file "NF_INT_IS_C_... not defined" is unavailable.
> 
>   The lines in ncfortran.h look as follows:
> 
> /*
>  * The type of a Fortran INTEGER:
>  */
> #if NF_INT_IS_C_INT
> #   define      NF_INTEGER      int
> #   define      NF_INT          INT
> #elif NF_INT_IS_C_LONG
> #   define      NF_INTEGER      long
> #   define      NF_INT          LONG
> #else
> #   include "NF_INT_IS_C_... not defined"
> #endif
> 
>    Can you suggest to me what to do in this case? I've tried 
> defining NF_INT_IS_C_INT/LONG which gets me past the compiler
> problems, but then I run into problems with applications using
> the netCDF library.

I'll need more information in order to diagnose the problem.  Would you
please send me items D through F mentioned at the bottom of the INSTALL
file.  Thanks.

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