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: Montserrat Seisdedos <address@hidden> >Subject: problem >Organization: . >Keywords: 199901201524.IAA17050 > I'm member of the Physics of Climate research group from the Alcala > University of Spain. > We are trying to read some netCDF data and we have found some problems: > i'll give you the report > f77 leercdf.f -I/tmp/wl/netcdf-3.4/src/fortran > leercdf.f: > MAIN leer_netcdf_file: > /usr/ccs/bin/ld: Unsatisfied symbols: > ncvid (code) > ncvgt (code) > ncopn (code) > ncclos (code) > I suppose it's a library problem, but i don't know where these > subrutines are? > Our platform is hpux10.20. > Can you help us? Yes, it looks like you have just neglected to specify where the Fortran netCDF library can be found. For example, if the library was installed in /tmp/wl/netcdf-3.4/lib/libnetcdf.a you would need to indicate this with a -L flag indicating the directory and a -l flag indicating the library, as in: f77 leercdf.f -I/tmp/wl/netcdf-3.4/src/fortran -L/tmp/wl/netcdf-3.4/lib -lnetcdf or you could just include the library in the list of object files to be linked, as in: f77 leercdf.f -I/tmp/wl/netcdf-3.4/src/fortran /tmp/wl/netcdf-3.4/lib/libnetcdf.a (In either case, I am assuming the Fortran library was built and installed successfully in the indicated location.) If this doesn't work, please let us know at address@hidden, and thanks for using netCDF. --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu