Hello,
I was trying to install ioapi-3.2 through intel compiler, but keep getting the following error message:
“…/CMAQv5.3.2/src/ioapi-3.2/Linux2_x86_64ifort/libnetcdff.a(nf_var1io.o): In function nf_put_var1_int64_': ../CMAQv5.3.2/src/netcdf-fortran-4.5.3/fortran/nf_var1io.F90:354: multiple definition of
nf_put_var1_int64_’
…/CMAQv5.3.2/src/ioapi-3.2/Linux2_x86_64ifort/libioapi.a(modncfio.o):modncfio.F90:(.text+0x71360): first defined here
…/CMAQv5.3.2/src/ioapi-3.2/Linux2_x86_64ifort/libnetcdff.a(nf_var1io.o): In function nf_get_var1_real': ../INTEL/CMAQv5.3.2/src/netcdf-fortran-4.5.3/fortran/nf_var1io.F90:733: multiple definition of
nf_get_var1_int64_’
…/CMAQv5.3.2/src/ioapi-3.2/Linux2_x86_64ifort/libioapi.a(modncfio.o):modncfio.F90:(.text+0x71380): first defined here
…/CMAQv5.3.2/src/ioapi-3.2/Linux2_x86_64ifort/libnetcdff.a(nf_varaio.o): In function nf_put_vara_int64_': ../CMAQv5.3.2/src/netcdf-fortran-4.5.3/fortran/nf_varaio.F90:440: multiple definition of
nf_put_vara_int64_’
…/INTEL/CMAQv5.3.2/src/ioapi-3.2/Linux2_x86_64ifort/libioapi.a(modncfio.o):modncfio.F90:(.text+0x713a0): first defined here
…/CMAQv5.3.2/src/ioapi-3.2/Linux2_x86_64ifort/libnetcdff.a(nf_varaio.o): In function nf_get_vara_double': ../CMAQv5.3.2/src/netcdf-fortran-4.5.3/fortran/nf_varaio.F90:933: multiple definition of
nf_get_vara_int64_’
…/CMAQv5.3.2/src/ioapi-3.2/Linux2_x86_64ifort/libioapi.a(modncfio.o):modncfio.F90:(.text+0x713c0): first defined here
make[1]: *** [airs2m3] Error 1
make[1]: Leaving directory `…/CMAQv5.3.2/src/ioapi-3.2/m3tools’
make: *** [all] Error 2”
I searched the solution over the forum, but neither works for me. For your reference, I compiled netcdf by --disable-netcdf4, --disable-netcdf-dap, and succeed. I linked “libnetcdff.a” and “libnetcdf.a” from netcdf library directory to the directory “ioapi-3.2/Linux2_x86_64ifort”. and run make under Base directory. Could you suggest me how to resolve this error?
Thanks very much,
Best,
Xiangyu