>
>
> I've just downloaded and installed NCAR Graphics ver. 4.3.1 onto my Mac
> G4. I'm running Mac OS 10.3.4, and I also have XonX (XFree86 v. 4.3.0)
> installed. I'm running Absoft Fortran 8.2. My problem is attempting to
> run example cpex08.
>
> First, I noticed that ncargex attempts to compile cpex08.f and cpexcc.f
> as a Fortran 90 sources as opposed to Fortran 77 source members.
Hi Sam,
I think this is just because "ncargex" is using "ncargf90" as its
default script to use for compiling a program. There should be an
"ncargf77" script you can use, that invokes f77 instead. See below.
> Second, the compile and link fail due to unresolved references. The listing
> below shows my attempted compile and link:
> .
> .
> .
> Compiling and linking...
> f90 -s -YEXT_NAMES=LCS -YCOM_NAMES=LCS -YCOM_PFX=_ -YCOM_SFX=_ -B108 -O
> -o cpex08 cpexcc.f cpex08.f -L/Applications/ncarg/lib -L/usr/X11R6/lib
> -lncarg -lncarg_gks -lncarg_c -lXpm -lX11 -lXext
> ld: Undefined symbols:
> ___ftof
> ___casgn
> ___cheq
> .
> .
> .
> The compile and link failed.
>
I think you might just be missing a system library here. Perhaps you
need to load an additional Absoft library? I don't remember what
version of Absoft NCAR Graphics was built with, but chances are you
have a newer version. This sometimes this causes a slight
incompatibility, which you may be seeing here. I think if you pull in
the necessary system libraries, you might be okay.
>
> It looks as if ncargex accesses a makefile I cannot find in the NCAR
> Graphics installation. The questions I have are:
"ncargex" doesn't access a Makefile. It calls "ncargf90" (or
"ncargf77") which is just a C-shell script for compiling NCAR Graphics
programs.
>
> - where is the makefile and how can I modify it?
Take a look at $NCARG_ROOT/bin/ncargf90 and/or
$NCARG_ROOT/bin/ncargf77. One of these scripts are the ones being
used to compile your program. You can edit them and add/remove
compiler options, libraries, etc as necessary.
> - what do I need to fix to successfully compile
> and link this (cpex08) and other examples?
Please see the above about system libraries.
> - when I want to use NCAR Graphics from a user's
> developed code, what need to do to
> make NCAR Graphics work?
I believe once you get the ncargf77 and/or ncargf90 scripts tuned for
your system, then users will be able to use these scripts to compile
their NCAR Graphics programs. For example:
ncargf77 cpex08.f cpexcc.f -o cpex08
>
> Looking forward to hearing from you and thanks in advance.
>
> Sam Dupree.
Hope this helps you get started.
--Mary
> _______________________________________________
> ncarg-talk mailing list
> ncarg-talk AT unknown
> http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
>
-- ------------------------------------------------- Mary Haley haley AT unknown NCAR/SCD/VETS 303-497-1254 (voice) 1850 Table Mesa Dr 303-497-1804 (fax) Boulder, CO 80305 ------------------------------------------------- _______________________________________________ ncarg-talk mailing list ncarg-talk AT unknown http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
This archive was generated by hypermail 2b29 : Mon Jul 12 2004 - 09:12:26 MDT