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, It sounds like you need to either install the netCDF binary libraries, or configure visual studio to link against them. You can download the binary installers from http://www.unidata.ucar.edu/software/netcdf/docs/winbin.html. These will install the header files and libraries you require linking against. Install this and see if you can resolve the issue, otherwise please follow up with me! I hope this helps, -Ward > Dear Unidata officer, > > I'm learning how to read & wrte netcdf datafile in c++. I try > to run 'simple_xy_wr.cpp', and download netcdf.h, netcdfcpp.h and > Ncvalues.h. However, I can't run it and Visual Studio showed "unresolved > external symbol 'symbol' referenced in function 'function' " at function > NcFile, NcVar. > > Do you have any idea how to solve this problem? > > Best regards, > > Linghui > > > Ticket Details =================== Ticket ID: LYH-549747 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.