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.
>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