/********************************************************************* * Copyright 1992, University Corporation for Atmospheric Research * See netcdf/README file for copying and redistribution conditions. * * Purpose: implementation of classes of typed arrays for netCDF * * $Header: /upc/share/CVS/netcdf-3/cxx/ncvalues.cpp,v 1.11 2006/12/29 16:38:56 ed Exp $ *********************************************************************/#include <cstring> ACRESCENTE ESSA LINHA AQUI!!#include <config.h>#include <iostream>#include <string>
#include "ncvalues.h"
NcValues::NcValues( void ) : the_type(ncNoType), the_number(0)
vim sfc_pres_temp_rd.cpp
/* This is part of the netCDF package. Copyright 2006 University Corporation for Atmospheric Research/Unidata. See COPYRIGHT file for conditions of use.
This is an example which reads some surface pressure and temperatures. The data file read by this program is produced companion program sfc_pres_temp_wr.cxx. It is intended to illustrate the use of the netCDF C++ API.
This program is part of the netCDF tutorial:
Full documentation of the netCDF C++ API can be found at:
$Id: sfc_pres_temp_rd.cpp,v 1.16 2007/01/19 12:52:13 ed Exp $*/#include <cstring> ACRESCENTE ESSA LINHA AQUI!!
#include <iostream>#include <netcdfcpp.h>
using namespace std;
/*********************************************************************
* Copyright 1992, University Corporation for Atmospheric Research
* See netcdf/README file for copying and redistribution conditions.
*
* Purpose: implementation of classes of typed arrays for netCDF
*
* $Header: /upc/share/CVS/netcdf-3/cxx/ncvalues.cpp,v 1.11 2006/12/29 16:38:56 ed Exp $
*********************************************************************/
#include <cstring> ====>>> incluir essa linha
#include <config.h>
#include <iostream>
#include <string>
cd ..
./configure --prefix=/usr/local/netcdf3
make check
make install