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

[netCDF #VZD-784217]: Compile Issues

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 #VZD-784217]: Compile Issues
  • Date: Mon, 12 Mar 2012 16:04:59 -0600

Hi Mack,

Make sure you are linking to both the netCDF Fortran library and the netCDF
C library, which in version 4.1.3 are separate libraries.  So to link a
program with both libraries, you need to use both of

  -lnetcdff -lnetcdf

on the compile/link line.  If you didn't include the first of these, it would
cause the error messages you are seeing.

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: VZD-784217
Department: Support netCDF
Priority: Normal
Status: Closed