Thank you very much Kate! I compiled with gfortran everything from the beginning and of course the netCDF and netCDF-Fortran as you indicate. Although I had progress with the compile, I stuck in the following:
Build/libMODS.a(mod_netcdf.o): In function `__mod_netcdf_MOD_netcdf_get_dim': mod ...