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.
Unidata Support <address@hidden> writes: > ------- Forwarded Message > >>To: address@hidden >>From: "Robyn Schofield" <address@hidden> >>Subject: netCDF Fortran (77 + 90) - Reading NetCDF files with F90 >>Organization: NOAA >>Keywords: 200504262359.j3QNxaX1017806 netCDF MacOS Fortraqn > > Institution: NOAA > Package Version: 3.6.0 > Operating System: Mac OSX > Hardware Information: 1.5 GHz PowerPC G4 512 MBDDR SDRAM > Inquiry: I am using Absoft Tools Pro Fortran for Mac OS X v 9.0 to > compile the fortran routines. I have installed netCDF version 3.6.0. I > am just at the moment trying to open a netCDF file from within a .f90 > routine, I have included netcdf.f90 and typesizes.f90 within the > project and specified -lnetcdf in the link flag options, (having also > placed the libnetcdf.a file in the project) and I can get so far as > everything linking etc but all of the nf_.... routines > can\\\\\\\\\\\\\\\'t be found. Is the compiler looking for the f77 > routines, can I fix this someway by including the f77 netcdf.inc file? > How? > Run "make test" and see of the fortran 90 tests passed (look for the f90 directory). If these tests work, you can see how the test program is linking to the library and try to copy it. (If you've already done a make test, do a "make clean test" to start over, and thus see the compile commands which can correctly link.) If the tests don't work, please email me. Thanks! Ed -- Ed Hartnett -- address@hidden