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, > I am trying to run a program that uses the netcdf libraries. I am running > windows XP with the cygwin application for fortran compiling and > installation. I installed zlib, hdf5 1.8.1, and netcdf-4. Everything > seemed to install alright. When I try to compile the program I need using > a command such as > > g95 mcd_mat.F -I /usr/local/include -L /usr/local/lib -lnetcdf -o mcd_mat > > I get an error /bin///ld: cannot find -lnetcdf > > I'm not sure if this is because in the /usr/local/lib directory I have > libnetcdf.la and not libnetcdf.a. What can I do to fix this problem so the > program find -lnetcdf? Thanks. > Sincerely, > Morgan Silverman > > > Morgan L. Silverman > Research Associate > North Carolina State University > National Institute of Aerospace > Located at: NASA Langley Research Center > Bldg 1209, 100A-8 > 757-864-3219 > address@hidden > address@hidden > > Did you build netcdf from source? Did the make test step work? Thanks, Ed Ticket Details =================== Ticket ID: KKC-996483 Department: Support netCDF Priority: Normal Status: Open