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.
> Hello, thanks a lot for your previous help, because I could indeed get > further when I used Cygwin. I can get my compiler to find the library. > When I compile and link to netcdf, with a 'use netcdf' command in the > f90 code, but with no netcdf functions in it, it compiles with no > problem. > > However, when I call any netcdf function in my code, I get an error > message like: > c:/DOCUME~1/DIRKWO~1/LOCALS~1/Temp/ccVH3AaI.o:opendata.f90(.text+0x > 3): undefined reference to `__netcdf__nf90_open' > collect2: ld returned exit status . > > I have already found out that it is likely that this has to do with > conventions about adding one or two underscores to function names. I did > try to add a '-fno-second-underscore' flag to the gfortran command (as > someone advised me), but this changed nothing to the result. > > What could be wrong here? Do you have a solution for this? > > Thanks! > > Dirk Wolters (student of Wageningen University, the Netherlands) > Howdy Dirk! Are you still having this problem, or did you get netCDF to work for you under cygwin? Thanks, Ed Ticket Details =================== Ticket ID: KXL-102687 Department: Support netCDF Priority: Normal Status: Closed