Re: NetCDF, Fortran, and Cygwin



jrsyangl wrote:
I posted previously (7/10/08) about my problems getting NetCDF binaries to work with gfortran. Feedback led me to install Cygwin and try to get NetCDF to work there. There are still problems. I have some tentative ideas about why, and wonder if anyone has any comments.
1) There are no native Windows NetCDF binaries for Fortran 9x, like gfortran;
2) There are no Cygwin NetCDF binaries for 32 bit systems, like my 5 year old Pentium 4.
My options, therefore, are:
a) Try to get a (free) f77 compiler (f2c?);
b) Build a 32 bit NetCDF under Cygwin myself (gulp);
c) Buy a new 64 bit computer (double gulp).
I have contacted Unidata (NetCDF), but have yet to hear back. I would appreciate feedback,especially about the complexity of option b). I am a Meteorologist, not a computer specialist, and have never built anything.

Building it should be fairly straightforward. The package should have a configure scripts, which in most cases will "do the right thing".

The one potential hangup is fortran/cfortran.h, which is a header file that is intended to automagically address mixed language issues. As of my most recent building of NetCDF (3.6.2), it handled using the Intel compilers seamlessly -- you may be able to build it without needing to make any modifications.

If you run into any issues, I assume you would be building with some version of gfortran, and I would expect that folks either here or on the mailing list could help you resolve them.
.



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: gfortran netCDF problem
    ... If you have cygwin installed, it should be quite easy to download the ... netcdf, will I be able to use netcdf with gfortran under Windows? ... binaries to work. ...
    (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
    ... 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: gfortran netCDF problem
    ... If you have cygwin installed, it should be quite easy to download the ... source files and install netCDF from these. ... netcdf, will I be able to use netcdf with gfortran under Windows? ...
    (comp.lang.fortran)