This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
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>