Try adding -m64 to the WRAPIT line:
WRAPIT -m64 -L /usr/local/gfortran/lib -l gfortran jointFtoNCL.stub A3_writeNCLascii.f90
--Mary
On Jul 15, 2011, at 8:46 AM, Sha Feng wrote:
> Hi ncl-talker,
>
> On my mac:
>
> $ which gfortran
>
> /usr/local/bin/gfortran
>
> %> > WRAPIT -L /usr/local/gfortran/lib -l gfortran jointFtoNCL.stub A3_writeNCLascii.f90
>
> WRAPIT Version: 100111
> COMPILING A3_writeNCLascii.f90
> LINKING
> ld: warning: in /usr/local/gfortran/lib/libgfortran.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
> END WRAPIT
>
> File jointFtoNCL.so is created, but I am not sure it is ok now because there is a warning when I link the files.
>
> Thanks,
>
> Sha
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jul 15 08:56:26 2011
This archive was generated by hypermail 2.1.8 : Mon Jul 18 2011 - 15:57:57 MDT