NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

c++ library for netCDF

Russ,

I recompiled the Gnu C++ compiler version 2.6.3 on
my system.  Once completed I started in again on
the compilation of the c++ library.

There was a conflict in two header files for
the same variable.  In line 281 on the libsrc/netcdf.h 
and line 20 of the c++/ncvalues.hh files
the definitions are different.  I changed
the libsrc/netcdf.h line from

        typedef char ncbyte;
to
        typedef unsigned char ncbyte;

and the c++ library compiled nicely.  I am not
sure what the impact will be on the netCDF
C library with this change.  Do you?

By the way, if I took the 'unsigned' out of the
ncvalues.hh file it caused many errors.


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
John Huddleston                             |           //////////
Computer Engineer                           |          \(o)/  \(o)/
USDA Natural Resources Conservation Service |               ()
     (formerly Soil Conservation Service)   |          \\========//
2625 Redwing Rd., Suite 110                 |
Fort Collins, Colorado 80526                |   If you can't find it,
jhuddleston@xxxxxxxxxxxxxxx                 |   it's in the CVS.
(303) 282-2477                              |
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --


  • 1995 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: