g++ configure

Hi,

I have been reading the mail on the g++ libraries for
netCDF.  This morning I downloaded the newest patches 
and have the following comments:

Please add the c++/all to the Makefile and the configure files.

When you do the patch, uprev the version number for the VERSION
variable to 2.3.3 or 2.3.4 as appropriate.

Please recompile your binaries on your unidata.ucar.edu host
with the most recent g++ libraries for the Sun (and other
computers).  

I am using gcc version 2.5.8 and with the current Makefile
in the c++ directory, I get the following errors on a Sun 
with 4.1.3 operating system:

g++ -c -g -I../libsrc  netcdf.cc
In file included from netcdf.hh:16,
                 from netcdf.cc:12:
ncvalues.hh:20: conflicting types for `unsigned char'
../libsrc/netcdf.h:281: previous declaration as `char'
In file included from netcdf.cc:12:
netcdf.hh:250: `NcVar::put(const char *, long int, long int, long int, long 
int, long int)' is already defined in the class NcVar
netcdf.hh:265: `NcVar::put(const char *, const long int *)' is already defined 
in the class NcVar
netcdf.hh:279: `const NcVar::get(char *, long int, long int, long int, long 
int, long int) const' is already defined in the class const NcVar
netcdf.hh:294: `const NcVar::get(char *, const long int *) const' is already 
defined in the class const NcVar
netcdf.cc: In method `unsigned int NcVar::put(const char *, long int, long int, 
long int, long int, long int)':
netcdf.cc:566: redefinition of `unsigned int NcVar::put(const char *, long int, 
long int, long int, long int, long int)'
netcdf.cc:565: `unsigned int NcVar::put(const char *, long int = 0, long int = 
0, long int = 0, long int = 0, long int = 0)' previously defined here
netcdf.cc: In method `unsigned int NcVar::put(const char *, const long int *)':
netcdf.cc:587: redefinition of `unsigned int NcVar::put(const char *, const 
long int *)'
netcdf.cc:586: `unsigned int NcVar::put(const char *, const long int *)' 
previously defined here
netcdf.cc: In method `unsigned int const NcVar::get(char *, long int, long int, 
long int, long int, long int) const':
netcdf.cc:627: redefinition of `unsigned int const NcVar::get(char *, long int, 
long int, long int, long int, long int) const'
netcdf.cc:626: `unsigned int NcVar::get(char *, long int = 0, long int = 0, 
long int = 0, long int = 0, long int = 0) const' previously defined here
netcdf.cc: In method `unsigned int const NcVar::get(char *, const long int *) 
const':
netcdf.cc:648: redefinition of `unsigned int const NcVar::get(char *, const 
long int *) const'
netcdf.cc:647: `unsigned int NcVar::get(char *, const long int *) const' 
previously defined here
make: *** [netcdf.o] Error 1


I have rearranged the order of the include directories in your 
c++/Makefile without much success.

What am I doing wrong?


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
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: