<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Thanks Guanshan, glad this worked! I've got this on my list to add recognition of the "-m32/64" option for WRAPIT.<div><br></div><div>--Mary</div><div><br><div><div>On Nov 9, 2009, at 4:36 PM, guangshan chen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica">Hi Mary,</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; min-height: 17.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica">Thanks for the hint. Now WRAPIT works with 64-bit compiler (gcc and gfortran) in 32-bit ncl.</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; min-height: 17.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica">Here is what I did:</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica">Searching "case Darwin" in WARPIT</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; min-height: 17.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica">First coming:<span class="Apple-converted-space"> </span></font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>if ($debug == 1 && ($f90c == g77 || $f90c == gfortran)) then <span class="Apple-converted-space"> </span># GNU<span class="Apple-converted-space"> </span></font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>set fopts = "$fopts -v -c -m32 -fno-common -ffortran-bounds-check -fno-second-underscore"</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>else</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>set fopts = "$fopts -c -m32 -O -fno-common -fno-second-underscore"</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; min-height: 17.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica">Second coming:</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>if ($debug == 1) then</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>set cmd = "gcc $copts -c -m32 -fno-common -I${NCARG_ROOT}/include WRAPIT.c"</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>echo $cmd</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>else</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>set cmd = "gcc $copts -c<span class="Apple-converted-space"> </span>-m32 -fno-common -O -I${NCARG_ROOT}/include WRAPIT.c"</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; min-height: 17.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica">Third coming:</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>case Darwin:<span class="Apple-converted-space"> </span># MacOSX</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>if (-e /sw/lib/libg2c.a) then</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>set cmd = "gcc -m32 -bundle -flat_namespace -undefined suppress $ld_suffix -L/sw/lib -lg2c"</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>else</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>set cmd = "gcc -m32 -bundle -flat_namespace -undefined suppress $ld_suffix"</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>endif</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>if ($f90c == gfortran) then <span class="Apple-converted-space"> </span># gfortran compiler</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>set cmd = "$cmd -m32 -lgfortran"</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>endif</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>if ($f90c == g95) then<span class="Apple-converted-space"> </span># g95 compiler</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>set cmd = "$cmd -m32 -lf95"</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica"><span class="Apple-converted-space"> </span>endif</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; min-height: 17.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; min-height: 17.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica">I like to build a 64-bit ncl for Snow leopard if I can get help form you. But I only can do it at weekend. I have more free time.</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; min-height: 17.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 14.0px Helvetica">Guangshan</font></p> </blockquote></div><br></div></body></html>