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

Martin Losch Martin.Losch at awi.de
Fri Mar 20 08:43:30 EDT 2009


You'll have to add this -lnetcdff to the LIBS-variable:
LIBS=${LIBS}' -lnetcdff'

M.

On Mar 20, 2009, at 1:32 PM, Martín Silva wrote:

> Ed Hill escribió:
>> On Thu, 19 Mar 2009 16:52:34 -0300 Martín Silva wrote:
>>> I think I have the correct libraries:
>>>
>>  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
>
>
> Yes!
>
> > gfortran -o genmake_tnc genmake_tnc.o  -lnetcdf -lnetcdff
>
> thank you Ed.
> Now I have an executable "genmake_tnc"
> So, the last step will be how to modify $ROOTDIR/tools/build_options/ 
> linux_ia32_gfortran
>
> Any ideas?
>
> Thanks in advance
>
> Martín
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support





More information about the MITgcm-support mailing list