[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 20010806: netcdf 3.5.0 C++ interface warnings with AIX xlC
- Subject: Re: 20010806: netcdf 3.5.0 C++ interface warnings with AIX xlC
- Date: Mon, 06 Aug 2001 14:29:28 -0600
>To: netCDF Support <address@hidden>
>cc: Mary Haley <address@hidden>
>From: Charlie Zender <address@hidden>
>Subject: netcdf 3.5.0 C++ interface warnings with AIX xlC
>Organization: UCAR/Unidata
>Keywords: 200108061648.f76GmE116074
Hi Charlie,
> Mary Haley built netcdf 3.5.0 on babyblue and temporarily
> installed it in /usr/local/apps/netcdf-3.5 while we check it out
> for problems.
> When compiling code that uses the C++ interface with xlC the
> following warning messages always result.
> The message is very explicit and perhaps making this modification to
> netcdfcpp.h will improve ISO conformance and cause the message to
> go away. Then again, maybe it won't and the problem is on my end.
>
> Thanks,
> Charlie
>
> /home/babyblue/zender/c++$ xlC -DAIX -qmaxmem=8192 -I. -I $HOME/include
> -I$NETCDF_INC -I/usr/local/include -c spc_slr.cc -o $MY_OBJ_DIR/spc_slr.o
> "/usr/local/apps/netcdf-3.5/include/netcdfcpp.h", line 157.5: 1540-0070 (W)
> The friend declaration must use the "class" keyword. "friend class NcFile".
> "/usr/local/apps/netcdf-3.5/include/netcdfcpp.h", line 360.3: 1540-0070 (W)
> The friend declaration must use the "class" keyword. "friend class NcFile".
> "/usr/local/apps/netcdf-3.5/include/netcdfcpp.h", line 391.3: 1540-0070 (W)
> The friend declaration must use the "class" keyword. "friend class NcFile".
>
Thanks, this problem and a couple of others are fixed in our latest
beta release at
ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.5.1-beta.tar.Z
From the RELEASE_NOTES:
Added support for eight-byte integers in Fortran90
interface. This permits using F90 with Cray
platforms, for example.
Increased advisory limits in C netcdf.h and Fortran
netcdf.inc for maximum number of dimensions,
variables, and attributes.
Changed C++ declarations "friend NcFile" to "friend
class NcFile" in cxx/netcdfcpp.h to avoid conform to
standard.
--Russ