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

Re: 970806: netCDF compilation problem



> > >From: "John R. Daugherty" <address@hidden>
> > >Subject: netcdf compilation problem
> > >Organization: NOAA/NSSL/Mesoscale Research & Applications Division
> > >Keywords: 199708061506.JAA07566 netCDF 3.3.1

John,

> > > I have encountered another problem.  In running the make, I got the
> > > following message:
> > > 
> > > Returning to directory /usr/local/src/netCDF/netcdf-3.3.1/src
> > > 
> > > 
> > > Making `all' in directory /usr/local/src/netCDF/netcdf-3.3.1/src/cxx
> > > 
> > >         c++ -c -O  -I../libsrc  -DNDEBUG -D_HPUX_SOURCE netcdf.cc
> > > In file included from netcdf.hh:16,
> > >                  from netcdf.cc:12:
> > > ncvalues.hh:13: generic.h: No such file or directory
> > > ncvalues.hh:14: iostream.h: No such file or directory
> > > ncvalues.hh:18: strstream.h: No such file or directory
> > 
> > This means c++ is unable to locate some standard include files that
> > should be installed with any C++ compilation system.  From the above,
> > your C++ compiler probably won't even be able to compile the following
> > standard 2-line program:
> > 
> > #include <iostream.h>
> > main() {cout << "Hello, world\n"; }
> > 
> > You can either find out what's needed to get the C++ compiler to compile
> > and link the above program first (if it's based on GNUS's g++, then
> > probably just installing libg++ and the associated include files in a
> > place where c++ can find them) or just disable the compilation and
> > testing of the netCDF C++ interface by setting the environment variable
> > 
> >   CXX=""
> > 
> > before invoking the configure script (after removing config.cache and
> > running "make clean").  The C and Fortran part of the library will still
> > work fine without the C++ interface.
> 
> Russ,  Bob and I decided to take the CXX="" route to see if we can get it
> completely compiled without the C++ interface.  I plan to compile and run
> ncplot and n2asc against this netCDF base, do you anticipate any problems I
> might have?  John D.

That should work, assuming ncplot and n2asc just use the C or Fortran
interfaces.  I'm not familiar with those two programs.

--Russ

_____________________________________________________________________

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu