Hi there,
I am tyring to use gfortran to compile my FORTRAN code with the options like
gfortran test.f90 -o test_nc.exe -I/usr/include -lnetcdff
I got error of
Fatal Error: Can't open module file 'netcdf.mod' for reading at (1): No such file or directory
I think this relates to the installed version, So I checked it with the command
nc-config --all
And I got the following, Is it possible to have a netCDF version that also supports gFortran?
Thx!
This netCDF 4.3.3.1 has been built with the following features:
--cc -> gcc --cflags -> -I/usr/include -I/usr/include/hdf --libs ->
--has-c++ -> no --cxx -> --has-c++4 -> no --cxx4 ->
--fc -> --fflags -> --flibs -> --has-f90 -> no
--has-dap -> yes --has-nc2 -> yes --has-nc4 -> yes --has-hdf5 -> yes --has-hdf4 -> yes --has-pnetcdf-> no
--prefix -> /usr --includedir-> /usr/include --version -> netCDF 4.3.3.1