[MITgcm-support] Can we create NetCDF-enabled binaries... no

Ed Hill ed at eh3.com
Thu Mar 19 17:32:44 EDT 2009


On Thu, 19 Mar 2009 16:52:34 -0300 Martín Silva wrote:
> 
> I think I have the correct libraries:
> 

/usr/lib/libnetcdf.so      <==  probably only the C interface
/usr/lib/libnetcdff.so     <==  probably just the Fortran wrapper
/usr/lib/libnetcdf_c++.so  <==  probably just the C++ wrapper


The netcdf package can be built so that the C, Fortran, and C++
interfaces all exist together in one library.  Or, it can be built so
that the three exist in separate libraries (as you show above).  There
is no right or wrong in this regard, its a matter of preference.

Please try the following:

  0) Make sure the above libs were built with the same version of GCC
     that you are using.

  1) Try compiling with "-lnetcdff -lnetcdf" since its likely
     that the Fortran library is just a thin wrapper around the C
     routines and depends upon them.

Hope that helps.

Ed

-- 
Edward H. Hill III, PhD  |  ed at eh3.com  |  http://eh3.com/




More information about the MITgcm-support mailing list