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.
Annette, The -fno-underscoring is an option understood by gfortran, but not gcc. The Fortran 77 interface is actually C code, compiled by gcc, so functions such as nf_open are unaffected by options to gfortran. The Fortran-90 interface, on the other hand, is Fortran-90 code (that) calls the Fortran-77 code), so it should be affected by the -fno-underscoring option. So nf90_open, for example should not have a trailing underscore. From your question, it sounds like you *do* want the trailing "_" on externals for Fortran, so I'm not sure why you are specifying -fno-underscoring, which would not append an underscore. If you really need the underscore for compatibility with another library, you should not specify the -fno-underscoring option in F90FLAGS or FFLAGS. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: IQL-963023 Department: Support netCDF Priority: Normal Status: Closed