Unidata / netcdf-fortran

Official GitHub repository for netCDF-Fortran libraries, which depend on the netCDF C library. Install the netCDF C library first.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

netcdf-fortran problem (libnetcdfd.so) problem

Parag0206 opened this issue · comments

  • I am using netcdf-fortran@4.6.0 with gcc@9.1.0(netcdf-c, cxx are installed)
  • CentOs 7 OS
  • I am getting the following error while trying to compile an ocean model(MOM6). This error happens after makefile is run
/home/mom6/spack/opt/spack/linux-centos7-cascadelake/gcc-9.1.0/netcdf-fortran-4.6.0-s5xysbzq4hhly5ddfqoghs7l232bfxmw/lib/libnetcdff.so: undefined reference to `nc_def_var_zstandard'
/home/mom6/spack/opt/spack/linux-centos7-cascadelake/gcc-9.1.0/netcdf-fortran-4.6.0-s5xysbzq4hhly5ddfqoghs7l232bfxmw/lib/libnetcdff.so: undefined reference to `nc_def_var_quantize'
/home/mom6/spack/opt/spack/linux-centos7-cascadelake/gcc-9.1.0/netcdf-fortran-4.6.0-s5xysbzq4hhly5ddfqoghs7l232bfxmw/lib/libnetcdff.so: undefined reference to `nc_inq_var_quantize'
/home/mom6/spack/opt/spack/linux-centos7-cascadelake/gcc-9.1.0/netcdf-fortran-4.6.0-s5xysbzq4hhly5ddfqoghs7l232bfxmw/lib/libnetcdff.so: undefined reference to `nc_inq_var_zstandard'
collect2: error: ld returned 1 exit status

The libnetcdff.so file is causing a problem.
Has anyone any idea regarding this error

Which version of netcdf-c are you working with?