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.
> Dear netcdf support, thanks for the reply! > Yes, I have netcdf.mod file at this location: > c:/cygwin/home/laptop/netcdf-3.6.3/f90 > Now, i compiled the program with the following command: > gfortran -I/home/laptop/netcdf-3.6.3/f90 simple_xy_rd.f90 > > This command is giving following messages: > $ gfortran -I/home/laptop/netcdf-3.6.3/f90 simple_xy_rd.f90 > /tmp/ccwZgcwY.o:simple_xy_r.f90:(.text+0x44): undefined reference to > `___netcdf_MOD_nf90_open' > /tmp/ccwZgcwY.o:simple_xy_r.f90:(.text+0x74): undefined reference to > `___netcdf_MOD_nf90_inq_varid' > /tmp/ccwZgcwY.o:simple_xy_r.f90:(.text+0x11a): undefined reference to > `___netcdf_MOD_nf90_get_var_2d_fourbyteint' > /tmp/ccwZgcwY.o:simple_xy_r.f90:(.text+0x2fc): undefined reference to > `___netcdf_MOD_nf90_close' > /tmp/ccwZgcwY.o:simple_xy_r.f90:(.text+0x410): undefined reference to > `___netcdf_MOD_nf90_strerror' > collect2: ld returned 1 exit status > > > > I will really apprciate if you please let me know how should I compile this > program > > > > Kind regards > > > > Howdy Jahanzeb! Can you try a more recent release of netcdf? The current release is 4.1.1. If you don't want any netCDF-4 features, configure it with --disable-netcdf-4. Thanks, Ed Thanks, Ed Ticket Details =================== Ticket ID: LOY-646076 Department: Support netCDF Priority: Critical Status: Closed