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.
> Howdy Ed: > > I have another question about the compilation of netcdf, is the compilation > default in 64 bits? > > Thank you very much for your attencion. > > Regards, > > Howdy Maria! Each time you try to build netCDF (except the very first time), you must do a "make distclean" first. That will make sure that each attempt to build netCDF starts clean. Which netCDF APIs do you need? Do you need the C++? Do you need the F77 and F90 APIs? If you don't need to use fortran, we can skip all fortran problems. If you don't need C++, use the configure option --disable-cxx, if you don't need fortran, use --disable-f77 and --disable-f90. But I suspect you want fortran, from your questions. To answer your question above, netCDF knows nothing about 64 vs. 32 bit builds. Most C compilers on 64-bit computers seem to default to 64 bits, but many fortran compilers seem to default to 32 bit. If you're fortran compiler is assuming 32 bit, you need to find the option for your C compiler which tells it to build in 32 bit mode as well, otherwise the C and Fortran libraries will not work together. The AIX build with xlf is known to work. See here: http://www.unidata.ucar.edu/software/netcdf/builds/snapshot/ (search for AIX). Please do a "make distclean" and then, without setting any environmental vars, run ./configure && make check and send me the complete output if it does not work. Thanks, Ed Ticket Details =================== Ticket ID: YHU-955675 Department: Support netCDF Priority: Critical Status: Open