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.
> Hi, I got a problem when trying to install netcdf 3.6.2 on my Mac OS X with > Intel compiler. After entering ./configure, I got: > ... > checking for Fortran "integer*2"... yes > checking if Fortran "byte" is C "signed char"... configure: error: Could not > link conftestf.o and conftest.o > > Does anybody know how to fix it? Thanks a lot. > > Also, I would like to build the lib in 64-bit mode. Does anybody know the > options for this case? > > Any suggestion is highly appreciated. > > Jiwen > > Howdy Jiwen! Could this be a 32/64 bit issue? The problem that configure is having is that it can't correctly link a C and a Fortran program together. I've seen this occur on platforms that have a 32-bit Fortran compiler and a 64-bit C compiler. In those cases, you have to find the correct flags to make your C compiler output 32-bit object files instead of 64-bit. (For gcc you set CFLAGS and CXXFLAGS to "-m32"). Look in the config.log file for the message you are seeing. There you will see how it is trying to compiler C and Fortran together, and there may be a useful error message. Thanks, Ed Ticket Details =================== Ticket ID: HIS-408233 Department: Support netCDF Priority: Normal Status: Open