> 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
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.