[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 970806: netCDF compilation problem
- Subject: Re: 970806: netCDF compilation problem
- Date: Wed, 06 Aug 1997 12:33:07 -0600
>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
_____________________________________________________________________
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu