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.

To learn about what's going on, see About the Archive Site.

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.




  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: