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

20030113: netCDF library link problem: missing f77 interface

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: 20030113: netCDF library link problem: missing f77 interface
  • Date: Mon, 13 Jan 2003 13:11:54 -0700

Ashish,

>Date: Mon, 13 Jan 2003 15:09:03 -0500
>From: ashish arora <address@hidden>
>Organization: University of Kent
>To: Steve Emmerson <address@hidden>
>Subject: RE: 20030113: netCDF library link problem: missing f77 interface

The above message contained the following:

> It seems that all the steps required to install are working fine now.
> 
> I ran "pmake test" and it ran successfully.Now I need my program odbtest to 
> run successfully.
> 
> DO I need to make any changes over at that point in the other folder, where 
> odbtest exists for my program to run successfully.I mean any changes related 
> to libnetcdf.a or something which would help my program run successfully.

If the build (i.e. "make") of the netCDF package and its installation
(i.e. "make install") were successful, then you should only need to

    1.  Reference the netCDF header-file when you compile your
        netCDF-using program, e.g.

            cc -c -I/opt/netcdf/include ...

and

    2.  Reference the netCDF library when you link your netCDF-using
        program, e.g.

            ld ... -L/opt/netcdf/lib -lnetcdf

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>