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

Re: Re[2]: 970529: Digital Unix 4.0 problem with netcdf 3.3



>To: address@hidden
>From: Harry Edmon <address@hidden>
>Subject: Digital Unix 4.0 problem with netcdf 3.3
>Organization: Dept of Atmospheric Sciences, University of Washington
>Keywords: 199705291834.MAA11048

Hi Harry,

> Using the DEC "cxx" compiler you get the following:
> 
> cxx -c -O  -I../libsrc  -DNDEBUG netcdf.cc
> cxx -c -O  -I../libsrc  -DNDEBUG ncvalues.cc
> cxx: Error: ncvalues.cc, line 156: In this statement, the argument list
> "ostrstream(s,sizeof(s))<<the_values[n]" matches no "ostream::operator <<".
> as_string_implement(short)
> ^
> cxx: Error: ncvalues.cc, line 157: In this statement, the argument list
> "ostrstream(s,sizeof(s))<<the_values[n]" matches no "ostream::operator <<".
> as_string_implement(nclong)
> ^
> cxx: Error: ncvalues.cc, line 158: In this statement, the argument list
> "ostrstream(s,sizeof(s))<<the_values[n]" matches no "ostream::operator <<".
> as_string_implement(float)
> ^
> cxx: Error: ncvalues.cc, line 159: In this statement, the argument list
> "ostrstream(s,sizeof(s))<<the_values[n]" matches no "ostream::operator <<".
> as_string_implement(double)
> ^
> *** Exit 1
> Stop.

  and in a later message ...

> You can use our system to check out netcdf on Digital Unix.  I created an
> account for you ...

Thanks.  You can delete the account if you want to, since we found a
workaround using an evaluation copy of the Digital C++ compiler, and the
price has been reduced enough that we will probably buy it.

I've appended the fix, which will be incorporated into 3.3.1 to be
released soon:

--Russ

diff -c -r1.1 -r1.2
*** 1.1 1997/04/21 15:44:53
--- 1.2 1997/06/12 17:02:49
***************
*** 4,10 ****
   *
   *   Purpose: interface for classes of typed arrays for netCDF
   *
!  *   $Header: /upc/share/CVS/netcdf-3/cxx/ncvalues.hh,v 1.1 1997/04/21 
15:44:53 russ Exp $
   *********************************************************************/
  
  #ifndef Ncvalues_def
--- 4,10 ----
   *
   *   Purpose: interface for classes of typed arrays for netCDF
   *
!  *   $Header: /upc/share/CVS/netcdf-3/cxx/ncvalues.hh,v 1.2 1997/06/12 
17:02:49 russ Exp $
   *********************************************************************/
  
  #ifndef Ncvalues_def
***************
*** 202,208 ****
  char* NcVal(TYPE)::as_string( long n ) const                                \
  {                                                                           \
      char* s = new char[32];                                                 \
!     ostrstream(s, sizeof(s)) << the_values[n] << ends ;                       
      \
      return s;                                                               \
  }
  
--- 202,209 ----
  char* NcVal(TYPE)::as_string( long n ) const                                \
  {                                                                           \
      char* s = new char[32];                                                 \
!     ostrstream ostr(s, sizeof(s));                                            
\
!     ostr << the_values[n] << ends;                                          \
      return s;                                                               \
  }