Re: NCAR Graphics, Mac OS 10.4 and XLF

From: Eric Salathe (salathe AT washington.edu)
Date: Wed May 04 2005 - 11:33:23 MDT


Hi-

Under 10.3, I have been simply using the precompiled g77 binaries with
both the XLF and NAG compilers. This should continue to work under
10.4.

You simply need to include -lg2c (or -lf2c) in your libraries for
compilers other than g77 when linking to g77-compiled libraries. Also,
for xlf, you need the -qextname flag. So, with the g77-compiled
binaries from NCAR installed in $NCARG_ROOT, you can just do the
following:

XLF:

xlf -qextname example.f90 -o example.ibm \
   -L$NCARG_ROOT/lib -L/usr/X11R6/lib -lncarg -lncarg_gks -lncarg_c \
   -lXpm -lX11 -lXext -lg2c

NAG:

f95 example.f90 -o example.nag \
   -L$NCARG_ROOT/lib -L/usr/X11R6/lib -lncarg -lncarg_gks -lncarg_c \
   -lXpm -lX11 -lXext -lg2c

-Eric

On May 4, 2005, at 3:20 AM, Malcolm Haylock wrote:

> Hi Everyone,
>
> I've just upgraded to Mac OS 10.4 and am in the process of installing
> NCAR Graphics. Under Mac OS 10.3 I installed the g77 NCG libraries but
> I would much prefer to do away with g77 and just use xlf.
>
> Has anyone had any success building the NCAR Graphics libraries with
> xlf under any version of Mac OS X? If so could they please email me
> the config file?
>
> Thanks,
> Malcolm Haylock
> _______________________________________________
> ncarg-talk mailing list
> ncarg-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
>

--
Eric Salathe
Climate Impacts Group             <salathe@washington.edu>
University of Washington          
<http://www.atmos.washington.edu/~salathe>

_______________________________________________ ncarg-talk mailing list ncarg-talk@ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncarg-talk



This archive was generated by hypermail 2b29 : Wed May 04 2005 - 13:06:14 MDT