This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Dave! > To: address@hidden > From: Dave Glowacki <address@hidden> > Subject: NetCDF configure buglet > Organization: University of Wisconsin at Madison/SSEC > Keywords: 199903112330.QAA28830 In the above message, you wrote: > We've got a machine which has g++ 2.7.2 installed, but is missing <iostream.h> > and the g++ libraries. > > The NetCDF configure tries to compile a trivial program and succeeds, but > when it tries to build the actual code in the 'src/cxx' subdirectory, > it dies. > > The following patch fixed this problem for us, and shouldn't have any > negative effects elsewhere, since the programs in 'src/cxx' also do a > '#include <iostream.h>': > > Index: src/aclocal.m4 > =================================================================== > RCS file: /source-control/mcnetcdf/src/aclocal.m4,v > retrieving revision 1.1.1.1 > diff -u -r1.1.1.1 aclocal.m4 > --- aclocal.m4 1998/07/06 18:06:09 1.1.1.1 > +++ aclocal.m4 1999/03/11 23:24:18 > @@ -115,7 +115,7 @@ > # compiler with a test program. > # > AC_MSG_CHECKING(C++ compiler \"$CXX\") > - AC_TRY_COMPILE(, , > + AC_TRY_COMPILE([#include <iostream.h>], , > [ > AC_MSG_RESULT(works) > break > > > ------- End of Forwarded Message Good idea. Consider it stolen. :-) -------- Steve Emmerson <http://www.unidata.ucar.edu>