[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #PSA-701162]: netcdf won't link

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.


  • Subject: [netCDF #PSA-701162]: netcdf won't link
  • Date: Thu, 05 May 2011 16:48:45 -0600

> Hello again,
> 
> Still no success in compiling.  Below is what I have been trying.  The 
> Makefile is listed, along with the make errors. Also I have included the 
> listing of the /usr/local/netcdf/include and /usr/local/netcdf/lib 
> directories.  I am at a loss.
> 
> Larry
> 
> 

Howdy Larry!

You must link to the fortran library:

-lnetcdff -lnetcdf

Note the extra "f" the first one has.

Good luck,

Ed

Ticket Details
===================
Ticket ID: PSA-701162
Department: Support netCDF
Priority: Normal
Status: Closed