NetCDF4 C++ API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Building the NetCDF 4 C++ library
File:    NetCDF/cpp4/doc/Building.txt
Subject: Building the NetCDF 4 C++ library
Author:  Thomas E. Hilinski <tom.hilinski@colostate.edu>
         Natural Resource Ecology Laboratory, Colorado State University
         IRC <www.nrel.colostate.edu/projects/irc/>
Date:    2013Jan

Building a compiled (binary) library from the source code currently is done using the GNU C++ compiler and GNU make.

The makefiles are in the directory

NetCDF/cpp4/build

There are makefiles for different computer systems and for different build types. The build types are:

  debug    = debugging (symbolic) information is included in the library.
  release  = The code is compiled with optimization on and no debug symbols.
  parallel = The code is built for parallel MPI I/O via the NetCDF4
             and HDF5 parallel I/O features. The latter libraries must
             be built with parallel I/O enabled.

Additional information:

  GNU g++            http://gcc.gnu.org/
  GNU make           www.gnu.org/software/make/manual/
  NetCDF web site    www.unidata.ucar.edu/software/netcdf/
  HDF5 web site      www.hdfgroup.org/HDF5/