Re: [netcdfgroup] ROMS/netcdf-4 integration problem solved

Roy Mendelssohn <Roy.Mendelssohn@xxxxxxxx> writes:

> The reason is that the default now in the netcdf configure script is to 
> compile fortran into a separate library.  There has been some discussion in 
> the nettcdf-group mail-lsit as to why this was desirable.  The netcdff 
> library is the one that contains fortran.  The comment to check nc-config 
> when things aren't working correctly is a good one.
>
> -Roy
>

Howdy all!

In olden times, the F77 API was jammed into the same .a file as the C
API. This worked fine until shared libraries came along. 

With shared libraries, a separate F77 library is needed. This is now the
default when building netCDF. The new F77 library is called libnetcdff.a
(note the extra "f" at the end).

Software that uses the F77 API must now use -lnetcdff.

Thanks,
Ed
-- 
Ed Hartnett  -- ed@xxxxxxxxxxxxxxxx



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