gfortran netCDF problem



I am a new user, trying to use netCDF with gfortran. gfortran (v
4.4.0) works fine by itself, but I am having problems installing
netCDF. I first tried v 3.6.1 but when I unzipped there was no netcdf.
h. I then tried 3.5.1, which had the .h file. However when I try to
include it in a simple program, I get "Illegal preprocessor directive"
messages for all the directives. Can someone tell what silly mistake I
must be making?
.



Relevant Pages

  • Re: NetCDF, Fortran, and Cygwin
    ... binaries to work with gfortran. ... There are no native Windows NetCDF binaries for Fortran 9x, ... but I've used cygwin for a long time. ...
    (comp.lang.fortran)
  • Re: NetCDF, Fortran, and Cygwin
    ... Feedback led me to install Cygwin and try to get NetCDF to work there. ... There are no native Windows NetCDF binaries for Fortran 9x, like gfortran; ... There are no Cygwin NetCDF binaries for 32 bit systems, like my 5 year old Pentium 4. ...
    (comp.lang.fortran)
  • NetCDF, Fortran, and Cygwin
    ... I posted previously about my problems getting NetCDF ... binaries to work with gfortran. ... Feedback led me to install Cygwin and ... There are no native Windows NetCDF binaries for Fortran 9x, ...
    (comp.lang.fortran)
  • Re: NetCDF, Fortran, and Cygwin
    ... in dealing with my NetCDF problem. ... binaries to work with gfortran. ... Feedback led me to install Cygwin and ...
    (comp.lang.fortran)