Hallo all,
I also experience the same problem when trying to do make_anthro usign a gfortran compiler:
$export FC=gfortran
$export DIR=/exports/csce/datastore/geos/users/s1878599/WRFchem4.0/build/libraries
$export NETCDF_DIR=$DIR/netcdf
$ ./make_anthro
=============================================================================
Using gfortran fortran compiler
=============================================================================
=============================================================================
netcdf top level directory = /exports/csce/datastore/geos/users/s1878599/WRFchem4.0/build/libraries/netcdf
=============================================================================
gfortran -g -ffree-line-length-none -c -I/exports/csce/datastore/geos/users/s1878599/WRFchem4.0/build/libraries/netcdf/include misc_definitions_module.f90
gfortran -g -ffree-line-length-none -c -I/exports/csce/datastore/geos/users/s1878599/WRFchem4.0/build/libraries/netcdf/include constants_module.f90
.
.
.
1.3/fortran/fort-varaio.c:160: undefined reference to `nc_put_vara'
/exports/csce/datastore/geos/users/s1878599/WRFchem4.0/build/libraries/netcdf/lib/libnetcdff.a(fort-varaio.o): In function `nf_get_vara_':
/exports/csce/datastore/geos/users/s1878599/WRFchem4.0/build/libraries/netcdf-4.1.3/fortran/fort-varaio.c:163: undefined reference to `nc_get_vara'
collect2: error: ld returned 1 exit status
make: *** [anthro_emis] Error 1
Failed to build anthro_emis
I have compiled the NETCDF library using gfortran, with the following commands:
export
DIR=/export/csce/datastore/geos/users/s1878599/WRFchem4.0/build/libraries
export CC=gcc
export CXX=g++
export FC=gfortran
export FCFLAGS=-m64
export F77=gfortran
export FFLAGS=-m64
cd netcdf-4.1.3
./configure --prefix=$DIR/netcdf --disable-dap \
--disable-netcdf-4 --disable-shared
make
make install
export PATH=$DIR/netcdf/bin:$PATH
export NETCDF=$DIR/netcdf
cd ..
Thanks in advance for the help!
Caterina Mogno