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 again, > > I'm using netcdf-4.1.1.tar.gz, downloaded from > http://www.unidata.ucar.edu/downloads/netcdf/netcdf-4_1_1/index.jsp. Or > rather, that's what I would like to do. > > I'm really not sure how to do this. Presumably I could use the C API in > a C++ program?? Or not? If that's possible, could you provide a fairly > detailed instruction on how to do that? > > Cheers, thanks for the help. > Anders Howdy Anders! If you google for "using C library in C++" I am sure you will get lots of explainations, but basically one just calls the C functions in a normal way from C++ code, and everything works. So include netcdf.h, include the appropriate -I and -L arguments to your compiler and linker, and call the C functions from your C++ code. Good luck! Ed Ticket Details =================== Ticket ID: NGV-120646 Department: Support netCDF Priority: Critical Status: Closed