NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

Re: [netcdfgroup] netcdf-4.1.2 released...

On 04/03/2011 05:46 AM, Roy Mendelssohn wrote:
1.  Give the command

nc-config --includedir

[...]

As the problem is at link phase, try to use:

`nc-config --flibs`

instead of "-L/usr/local/netcdf/lib -lnetcdf -L/usr/local/hdf5/lib -lhdf5_hl -lhdf5 -lz -lcurl"

I am guessing netcdf was built as dynamic lib and has fortran interface separated from C one in a separate libnetcdff.x. On my Linux box I have to link both libnetcdf AND libnetcdff:

-L/usr/lib -lnetcdff -lnetcdf

Have a look also at Ed Harnett e-mail on the list on 28/03: this is going to change in the future.

Ciao!

Graziano.