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.
> Hi Ed, > > I am using a new machine with new FORTRAN compiler. > I built netCDF library from source. When I compile (actually link) a > simple program, there is an undefined reference to 'netcdf_nf90_open_'. > I can find this 'netcdf_nf90_open_' in libnetcdf.a using nm, but somehow > I can't link to it. > > My FORTRAN program is: > > Use netcdf > Integer stat,pom > > Stat= nf90_open('pom_restart.nc', nf90_nowrite, pom) > > End > > Error message is: > > Mytest.o(.text+0x32): In function 'Main_': > : undefined reference to 'netcdf_nf90_open_' > > I searched the archives for similar problem, and found one person had > the same problem. But he didn't mention how he solve the problem. > > Thanks, > > Mingrui > > > Can you do a "make clean check" in the netCDF source directory, and send me the complete output? Thanks, Ed Ticket Details =================== Ticket ID: GSR-922703 Department: Support netCDF Priority: Normal Status: Open