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

Re: 20021105: netcdf3.5 for fortran90



>To: address@hidden
>From: "jifengying" <address@hidden>
>Subject: Help me !!!!
>Organization: UCAR/Unidata
>Keywords: 200211051331.gA5DVjX11835

Ji,

> After I downloaded the netcdf3.5 for fortran90 and the test program:
> netcdf_test.f90
> I compile the project under visual fortran ,I found the error appeared .For
> the functions that were declared in the file netcdf.ic  such as nf_creat has
> no body and the function f90_nf_creat also call the function  nf_creat
> ,Why??
> If it need the user to write the body of the function,such as nf_creat ?
> 
> Help Me!!!!!!!!!!!

The functions declared in netcdf.inc, such as nf_create() are part of
the Fortran-77 interface to netCDF, which must be compiled before the
Fortran-90 interface, because the Fortran-90 interface depends on the
Fortran-77 interface.

Your previous message did not indicate that you were trying to build
the netcdf 3.5 Fortran-90 interface for Windows.  You can get prebuilt
Windows binaries from 

  ftp://ftp.unidata.ucar.edu/pub/netcdf/contrib/win32/netcdf-3.5.0.win32bin.ZIP

which includes the Fortran-77 interface, but not the Fortran-90
interface (as far as I know).  To build from source, get this ZIP file:

  
ftp://ftp.unidata.ucar.edu/pub/netcdf/contrib/win32/netcdf-3.5.0.win32makeVC6.ZIP

(these make files are for Microsoft Visual C 6 and Digital Fortran 6,
you will have to modify for a different environment).  Then follow the
instructions here:

  ftp://ftp.unidata.ucar.edu/pub/netcdf/contrib/win32/WIN32_README.TXT

If you must have the Fortran-90 interface for Windows, I think you
will have to build from source.  We would be interested in any
modifications that are necessary to get this to work.  As far as I
know, the only reported success with the netCDF Fortran90 interface on
a Windows system required using the Absoft Fortran90 compiler rather
than the Digital Fortran compiler.  I'm CC:ing John Caron, in case he
knows more about this.

--Russ

_____________________________________________________________________

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu