This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Mauro Sgroi <address@hidden> writes: > Dear all, > I'm new to netcdf and I'm trying to use it within the > pacakage Abinit. I have a gcc/gfortran 4.2 compiler > installed on a Windows XP PC with cygwin. > I configured netcdf with the commands: > > CC=gcc-4.2 FC=gfc-4.2 CXX=g++-4.2 CPP=cpp-4.2 > CPPFLAGS=-Df2cFortran ./configure > --prefix=/usr/local/src/abinit-5.3.4/lib/netcdf You are doing a make check, correct? Try setting CPPFLAGS to -DgFortran. If that doesn't work, try -DpgiFortran. If neither work, let me know, and send the complete output of configure and make check. Don't forget to do a "make distclean" between each rerun of the configure script! Thanks! Ed -- Ed Hartnett -- address@hidden