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

Re: 20051029: linking netCDF



Unidata Support <address@hidden> writes:

> ------- Forwarded Message
>
>>To: "Support" <address@hidden>
>>From: Ora Renagi <address@hidden>
>>Subject: linking netCDF
>>Organization: JCU
>>Keywords: 200510290332.j9T3Wg7s026031
>
> Dear Sir/Madam,
>
> I managed to have Princeton Ocaen Model POM running without
> netcdf but am having problems incorporating the netCDF library.  The
> errors are all undefined references to "nf_...".
>
> I am running on a PC (Windows98) using g77.  I've uncommented the netCDF
> references in the '.f' file and I've corrected the path to "netcdf.inc"
> in
> the '.n' file.
>
> I don't know what the switch is to have g77 call the netCDF library.  I
> have
> tried appending:
> netcdf.lib
> -Lnetcdf.lib
> -lnetcdf.lib
>
> to the g77 command line.  I'm thinking this should be a very quick and
> easy fix - hence why I'm emailing you directly.
>
> Thanks in advance,
>
> Ora Renagi
> ph (07)  47814951 (bh)
> ph (07) 47797812 (ah)
>
> --
> NOTE: All email exchanges with Unidata User Support are recorded in the
> Unidata inquiry tracking system and then made publicly available
> through the web.  If you do not want to have your interactions made
> available in this way, you must let us know in each email you send to us.
>
> ------- End of Forwarded Message
>
>

The link option is usually -lnetcdf

Did you build netCDF under cygwin?

Thanks,

Ed

-- 
Ed Hartnett  -- address@hidden