Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

anybody got c++ code working?

I recently downloaded netcdf version 2.3.2, and have been successful
in using everything but the C++ interface.  The Makefile in the c++
directory dies, complaining as in the error messages I pasted below.
It fails whether I use 'g++' or the ATT compiler.

I'm writing to ask whether anybody else has been successful in getting
the C++ stuff working.

Dan Kelley                   | dan.kelley@xxxxxx            (902)494-1694
Oceanography Department      |
Dalhousie University         |
Halifax, NS, CANADA, B3H 4J1 |


g++ -g -I../libsrc  -sun4 -c  netcdf.cc
In file included from netcdf.hh:14,
                 from netcdf.cc:12:
ncvalues.hh:20: conflicting types for `unsigned char'
../libsrc/netcdf.h:281: previous declaration as `char'
netcdf.cc: In method `enum NcFile::FillMode NcFile::get_fill()':
netcdf.cc:210: return-type is an incomplete type
netcdf.cc:210: conflicting types for `void NcFile::get_fill()'
netcdf.hh:87: previous declaration as `enum NcFile::FillMode NcFile::get_fill()'
netcdf.cc: In method `void NcFile::get_fill()':
netcdf.cc:213: invalid use of undefined type `enum NcFile::FillMode'
netcdf.cc:216: invalid use of undefined type `enum NcFile::FillMode'
netcdf.cc:218: invalid use of undefined type `enum NcFile::FillMode'
*** Error code 1
make: Fatal error: Command failed for target `netcdf.o'


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690