[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20000608: building netCDF version 3.4 under AIX 4.3 using xlC
- Subject: 20000608: building netCDF version 3.4 under AIX 4.3 using xlC
- Date: Thu, 08 Jun 2000 16:33:53 -0600
Richard,
> To: address@hidden
> From: Richard Frost <address@hidden>
> Subject: AIX 4.3 builds
> Organization: SDSC
> Keywords: 200006081925.e58JPTT05674
In the above message, you wrote:
> I have built netcdf-3.4 on an IBM RS6000 running AIX 4.3.
> One build was using
> CC gcc
> CXX g++
> and the other with the configure defaults
> CC xlc
> CXX xlC
>
> For the latter, the xLC compiler found error with class definitions
> in netcdf.hh for NcDim, NcVar, and NcAtt. Specifically:
>
> friend NcFile::NcFile( const char *, NcFile::FileMode );
>
> "netcdf.hh", line 157.10: 1540-0133 (S) The attributes "friend" are not
> allowed.
> "netcdf.hh", line 368.10: 1540-0133 (S) The attributes "friend" are not
> allowed.
> "netcdf.hh", line 412.10: 1540-0133 (S) The attributes "friend" are not
> allowed.
>
> I worked around this with heavy overkill in the classes NcDim, NcVar, and
> NcAtt:
>
> #ifndef _AIX43
> private:
> #endif
>
> #ifndef _AIX43
> friend NcFile::NcFile( const char *, NcFile::FileMode );
> #endif
>
> The compiled package then passed all of the tests performed by "make test".
>
> Please let me know if users could experience errors due to this workaround.
>
> Thanks,
> Richard F.
Thanks for the information. I'll pass this on to the C++ interface
maintainer.
Regards,
Steve Emmerson <http://www.unidata.ucar.edu>