NSF Unidata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Support #OAF-514866]: using netcdf in c++

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 Rajesh,

You only need the include files and the compiled library files for building
netCDF applications.

For C++ applications, the needed include files are:

  netcdf.hh  (only needed for backward compatibility)
  ncvalues.h
  netcdfcpp.h
  netcdf.h

and the needed library files (assuming you installed static libraries) are:

  libnetcdf_c++.a
  libnetcdf.a
  libnetcdf_c++.la
  libnetcdf.la

where the last two are libtool library files.  If you have built shared
libraries
instead (not the default), the associated shared libraries should be used
instead.

--Russ


Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: OAF-514866
Department: Support
Priority: Normal
Status: Closed