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.
Huisheng, > To: address@hidden > From: Huisheng Bian <address@hidden> > Subject: error in 64-bit libnetcdf.a > Organization: NASA/GSFC > Keywords: 200402171327.i1HDRirV003011 The above message contained the following: > I've installed netCDF-3.5.0 on a SGI machine with IRIX64 platform. I set > my environment like this: > > setenv CC /app/gnu/bin/gcc > setenv CPPFLAGS -DNDEBUG > setenv CFLAGS -O -64 -mips4 > setenv FC /bin/f90 > setenv FFLAGS -O -64 -mips4 > setenv F90 /bin/f90 > setenv F90FLAGS -O -64 -mips4 > setenv CXX /app/gnu/bin/g++ > setenv CXXFLAGS -O -64 -mips4 > > The installation looks sucessful. However, when I applied netCDF in my > code, it shows error. The error message is as this: > > cc -O -64 -mips4 -DIEEE_DP -I./ > -I/home/bian/bin/netcdf-3.5.0/include -o ccm2nc ccm2nc.o ccmhdr.o > ccm_util.o cr-ieee.o crpack.o fortio.o htdatlen.o iscosb.o nc_util.o > parse.o strops.o -L/home/bian/bin/netcdf-3.5.0/lib -lnetcdf > ld64: FATAL 12 : Expecting 64-bit objects: > /home/bian/bin/netcdf-3.5.0/lib/libnetcdf.a is 32-bit. > *** Error code 2 (bu21) > > What's wrong in my installation? How to solve this problem? > I appreciate your hlep. Offhand, I'd say that the above is impossible, so an assumption must be wrong. What does a "file /home/bian/bin/netcdf-3.5.0/lib/libnetcdf.a" output? If you extract a file from the netCDF library, then what does a file(1) command on the extracted object-module output? > Thanks again, > > Huisheng Bian > Goddard Space Flight Center > Mail Code 916 > Greenbelt, MD 20771 > (301) 614-5092 Regards, Steve Emmerson