Therefore I switched to gfortran compiler, and I had a different error msg when compiling:
Code: Select all
ROMS/Bin/cpp_clean Build/master.f90
cd Build; /usr/bin/mpif90 -c -frepack-arrays -O3 -ffast-math master.f90
/usr/bin/mpif90 -frepack-arrays -O3 -ffast-math Build/esmf_roms.o Build/master.o Build/ocean_control.o Build/ocean_coupler.o Build/propagator.o Build/roms_export.o Build/roms_import.o -o oceanM Build/libNLM.a Build/libANA.a Build/libUTIL.a Build/libMODS.a -L/etc/NetCDF/fortran/lib -lnetcdf
/usr/bin/ld: cannot find -lnetcdf
collect2: ld returned 1 exit status
make: *** [oceanM] Error 1
/etc/NetCDF/fortran/lib/libnetcdff.a
/etc/NetCDF/fortran/lib/libnetcdff.so
/etc/NetCDF/c/lib/libnetcdf.a
and NetCDF directory is defined as:
NETCDF_INCDIR=/etc/NetCDF/fortran/include
NETCDF_LIBDIR=/etc/NetCDF/fortran/lib
export NETCDF_INCDIR
export NETCDF_LIBDIR
I also tried to define NETCDF_LIBDIR=/etc/NetCDF/c/lib, but still got errors.
Please help !!
Thanks so much!!
Mike Y.