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] creating libnetcdff.a

On 28/05/10 19:22, Marston Sheldon Johnston wrote:
> Hi,
> 
> Does anyone know how to get netcdf 4.1.1 to create libnetcdff.a?
> 
> I cannot get it to do this and COSP needs this library.
> Am I using the wrong version?
[...]

AFAIK if You compile a static version of libnetcdf the fortran interface is
included into libnetcdf.a, so just remove -lnetcdff from the LIBS line. You can
check with nm if on Unix if You get any symbol nf_* . If on the other side You
have a shared library (libnetcdf.so.X) and NOT libnetcdff.so.X, You probably
have compiled without the fortran interface enabled (maybe configure didn't find
a working fortran compiler).

Hope it helps.

Graziano.



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