Compiling Fortran netCDF programs on Ubuntu
问题 Ok, newb question here. I'm trying to compile simple_xy_wr.f90 -- a netCDF example program -- using gfortran on Ubuntu, and I must be doing something pretty silly; I don't have much experince compiling Fortran. First, I've got the libnetcdf-dev package installed, which includes files like /usr/lib/libnetcdf.a /usr/lib/libnetcdff.a /usr/include/netcdf.mod So, I've tried to compile the code with (various command like) f95 -o xy -I/usr/include/ -L/usr/lib/ -lnetcdff -lnetcdf simple_xy_wr.f90 and