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.
Greetings! It looks like the netCDF FORTRAN library is not being linked to your program. I see from your genie make log that you are using: -L/usr/local/lib -lnetcdf to link to netCDF, which is actually missing a link flag (which is why your program cannot find any nf_* symbols). I am not sure how you compile the program, but make sure you also link to -lnetcdff: -L/usr/local/lib -lnetcdff -lnetcdf Cheers! Sean > Hi, everyone. > > I built, checked and installed netcdf 4.1.3 successfully on my Ubuntu to > compile my another modeling program. unfortunately, the program reported > many errors like " undefined reference to `nf_create_' ". It probably > because libnetcdf was not used successfully, I think. However, when i > reinstall the lower version of netcdf 4.0.1, my program can be built > without errors. I want to ask how to solve this problem? > > I attached config.log and make.log files when building netcdf 4.1.3 and > also the log file when I built my own program. > > -- > Dr. Wentao Ma > State Key Laboratory of Marine Geology > Tongji University > 1239 Siping Road > Shanghai, 200092 > China > ---------------------------- > ??? ?? > ??????????????? > ??????1239? > 200092 > Ticket Details =================== Ticket ID: BPG-160315 Department: Support netCDF Priority: Critical Status: Open