[MINC-users] netcdf 3.5.0 and fedora core 3

Steve M. Robbins minc-users@bic.mni.mcgill.ca
Thu Jun 9 21:11:04 2005


On Wed, Jun 08, 2005 at 07:17:26PM +0200, Søren Christensen wrote:
> Hi,
> I was thinking that this issue might be of interest to other newbies.
>  I have tried to compile NetCDF 3.5.0 on Fedora 3 core, but the c++ compiler is unable to compile the test program during config.
> I tried with NetCDF 3.6.0 from Unidatas site and there were no problems.
> 
> The config log says:
> ....
> configure:1225: checking C++ compiler "c++"
> configure:1243: c++ -o conftest  -DNDEBUG  conftest.C  1>&5
> In file included from /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c ++/3.4.3/backward/iostream.h:31,
>                  from configure:1235:
> /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/backward/back ward_warning.h:32:2: warning: #warning This file includes at least one deprecate d or antiquated header. Please consider using one of the 32 headers found in sec tion 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated h eader <iostream.h>. To disable this warning use -Wno-deprecated.


But this is just a warning.  The compile ought to have worked.  Did
the configure script actually fail at this point?


> 2) What is the cause of the problem? Is it a deprecated header in NetCDF 3.5.0 relative to the default c++ compiler in Fedora?

No, it is a deprecated header *USED* by NetCDF.  Typically you can
ignore such warnings, or fix the code to use <iostream> instead of
<iostream.h>, etc.  From what you say, upstream has already made
these changes, so I'd just use the newer NetCDF.

-Steve