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

[netCDF #UAA-745818]: fortran compilation ERROR: Undefined symbol:

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 #UAA-745818]: fortran compilation ERROR: Undefined symbol:
  • Date: Thu, 07 Feb 2008 19:57:47 -0700

Hi Bomin,

I suggest moving the include option before the file name, as in:

  f77 -I/usr/local/include simple_xy_rd.f -L/usr/local/lib -lnetcdf

That should create an a.out file with the executable.  If you want to also name
the
program something else, you can use a "-o PROGNAME" option.

--Russ


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



Ticket Details
===================
Ticket ID: UAA-745818
Department: Support netCDF
Priority: Normal
Status: Closed