Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

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: