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 install the library netCDF on my HP Cluster (Linux n18 2.6.9-22.7hp.XCsmp
> #1 SMP Sun Dec 18 01:41:24 EST 2005 x86_64 x86_64 x86_64 GNU/Linux).
>
> I try to link my Fortran objects with this library, I got lot of warning
> messages as following:
>
>
>
> "# Do the link
>
> # m_tmr2.o \
>
> # m_eswinv.o \
>
> # mrdnum.o \
>
>
>
> ${FC} ${FLAGS} -o poes.exe \
>
> getobs.o \
>
> mksmrysats.o \
>
> poes.o \
>
> wtsats.o \
>
> wtsatr.o \
>
> rdarflsats.o \
>
> nearest.o \
>
> \
>
> ${LIB}/cdfinv.o \
>
> ${LIB}/mwtchr.o \
>
> ${LIB}/mwtdbl.o \
>
> ${LIB}/mwtnum.o \
>
> ${LIB}/smryrpt.o \
>
> ${LIB}/sortc.o \
>
> ${LIB}/sorti.o \
>
> ${LIB}/uatempvc.o \
>
> ${API}/lib/madislib.a \
>
> ${NETCDF_DIR}/libnetcdf.a
>
> /usr/bin/ld: warning: i386:x86-64 architecture of input file
> `/usr/local/netcdf/lib/libnetcdf.a(fort-attio.o)' is incompatible with i386
> output
>
> /usr/bin/ld: warning: i386:x86-64 architecture of input file
> `/usr/local/netcdf/lib/libnetcdf.a(fort-control.o)' is incompatible with i386
> output
>
> /usr/bin/ld: warning: i386:x86-64 architecture of input file
> `/usr/local/netcdf/lib/libnetcdf.a(fort-dim.o)' is incompatible with i386
> output
>
> /usr/bin/ld: warning: i386:x86-64 architecture of input file
> `/usr/local/netcdf/lib/libnetcdf.a(fort-genatt.o)' is incompatible with i386
> output
>
> /usr/bin/ld: warning: i386:x86-64 architecture of input file
> `/usr/local/netcdf/lib/libnetcdf.a(fort-geninq.o)' is incompatible with i386
> output
>
> /usr/bin/ld: warning: i386:x86-64 architecture of input file
> `/usr/local/netcdf/lib/libnetcdf.a(fort-genvar.o)' is incompatible with i386
> output
>
> /usr/bin/ld: warning: i386:x86-64 architecture of input file
> `/usr/local/netcdf/lib/libnetcdf.a(fort-lib.o)' is incompatible with i386
> output
>
> /usr/bin/ld: warning: i386:x86-64 architecture of input file
> `/usr/local/netcdf/lib/libnetcdf.a(fort-misc.o)' is incompatible with i386
> output
>
> /usr/bin/ld: warning: i386:x86-64 architecture of input file
> `/usr/local/netcdf/lib/libnetcdf.a(fort-v2compat.o)' is incompatible with
> i386 output
>
> /usr/bin/ld: warning: i386:x86-64 architecture of input file
> `/usr/local/netcdf/lib/libnetcdf.a(fort-vario.o)' is incompatible with i386
> output
>
Howdy Jian-Rong Zhou,
It looks like you build netCDF for 64-bit and are trying to build your app as
32-bit. That won't work!
You either need to rebuild netCDF for 32 bit, or build your apps for 64 bit.
Ed
Ticket Details
===================
Ticket ID: PNQ-750270
Department: Support netCDF
Priority: Normal
Status: Closed