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

Re: 950224: C++-Interface



> Keywords: 199502241515.AA29382

Hi Mechthild,

> I want to use the C++-Interface. I tried to compile the example.cc-file, but 
> I got some bugs:
> 
> 
> CC -o example example.cc -I/usr/local/import/netcdf/netcdf-232pl2/libsrc 
> -I/usr
> > /local/import/netcdf/netcdf-232pl2/c++
> 
> "/usr/local/import/netcdf/netcdf-232pl2/c++/ncvalues.hh", line 20: error:  
> ncby
> > te redefined: typedef char  and typedef unsigned char 
> "example.cc", line 10: error:  qualified name NcFile:: Clobber not found in  
> Nc
> > File
> "example.cc", line 10: error: no match for call:    NcNewFile* ->  
> NcNewFile:: 
> > NcNewFile( const char *, any )
> "example.cc", line 10: choice of NcNewFile::NcNewFile()s:
> "example.cc", line 10:   NcNewFile::NcNewFile(const char *, 
> NcNewFile::CreateMo
> > de);
> "example.cc", line 10:   NcNewFile::NcNewFile(const class NcNewFile&);
> "example.cc", line 15: error: return value expected
>  
> 
> Is it possible that I use a bad C++-version, or can you explain me these bugs?

Yes, please apply the two patches for the C++ interface that are available
via anonymous FTP from the two files:

    ftp://ftp.unidata.ucar.edu/pub/netcdf/2.3.2-patch3
and
    ftp://ftp.unidata.ucar.edu/pub/netcdf/2.3.2-patch4

These fix a problem with the C++ interface that you are seeing that was
introduced with patch#2 to netcdf 2.3.2, as well as some other problems that
have been reported with the C++ interface.

--Russ

______________________________________________________________________________

Russ Rew                                                UCAR Unidata Program
address@hidden                                          P.O. Box 3000
http://www.unidata.ucar.edu/                          Boulder, CO 80307-3000
______________________________________________________________________________