NetCDF 3.3.1 and MS Visual C++

I'm trying to compile the C++ interface to NetCDF with Microsoft Visual C++ 
(Win 95) Both the C and FORTRAN interfaces compiled without any problems using
the msoft.mak files that came with the NetCDF distribution. However, when I
try to compile the C++ files, the compiler reports that it can't find
strstream.h. This header file exists on all of our UNIX boxes, but doesn't
seem to exist with the Visual C++ compiler. Does anyone have any ideas
or work-arounds? Here is the top of the file where the error occurs:


/*********************************************************************
 *   Copyright 1992, University Corporation for Atmospheric Research
 *   See netcdf/README file for copying and redistribution conditions.
 *
 *   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
#define Ncvalues_def
 
#include <generic.h>
#include <iostream.h>
#ifdef STRSTREAM_H_SPEC
#   include STRSTREAM_H_SPEC
#else
#   include <strstream.h>
#endif

Is there a definition of STRSTREAM_H_SPEC that I could use to get around this
problem?

-----------------------------------------------------------------------------  
                                                |     |
                                                |  _  |
    Tom Glaess                    ______________|_( )_|______________
    tgl@xxxxxxxxxxxx                 o   +|+   [ ( o ) ]   +|+   o
                                              *[_]---[_]*
-----------------------------------------------------------------------------  

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