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.
Hello, Are you getting this error during compilation? Can you provide the config.log file generated when you configured netcdf-fortran? It appears that the test is not linking against the netcdf-fortran library. The config.log file may contain information we can use to figure out what is happening. Thanks! -Ward > Hardware: > Description of problem: I am using the simple simple_xy_wr.f fortran file > (https://www.unidata.ucar.edu/software/netcdf/examples/programs/simple_xy_wr.f) > for writing a netcdf file. After compiling the simple_xy_wr.f with gfortran > I have the following error message: > > tmp/cc5riVIZ.o: In function `handle_err_': > simple_xy_wr.f:(.text+0x7a): undefined reference to `nf_strerror_' > /tmp/cc5riVIZ.o: In function `MAIN__': > simple_xy_wr.f:(.text+0x163): undefined reference to `nf_create_' > simple_xy_wr.f:(.text+0x1b0): undefined reference to `nf_def_dim_' > simple_xy_wr.f:(.text+0x1fd): undefined reference to `nf_def_dim_' > simple_xy_wr.f:(.text+0x271): undefined reference to `nf_def_var_' > simple_xy_wr.f:(.text+0x2a8): undefined reference to `nf_enddef_' > simple_xy_wr.f:(.text+0x2ec): undefined reference to `nf_put_var_int_' > simple_xy_wr.f:(.text+0x31f): undefined reference to `nf_close_' > collect2: error: ld returned 1 exit status > > > > Can you help me? > > Best regards, > Artur > > > > > > Ticket Details =================== Ticket ID: MBN-876556 Department: Support netCDF Priority: Normal 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.