[ncl-install] unable to compile NCAR graphics examples
Mary Haley
haley at ucar.edu
Wed Nov 21 15:12:57 MST 2012
Hi Doug,
I think if you add -lgfortran to the end of the compile line, it should work:
ncargex cpex08 -n
ncargf77 cpex08.f cpexcc.f -lgfortran
./a.out
If this seems to fix the problem, then you can fix "ncargf77" by editing $NCARG_ROOT/bin/ncargf77 and changing the line:
set libextra = ""
to
set libextra = "-lgfortran"
--Mary
On Nov 21, 2012, at 2:44 PM, Douglas Miller wrote:
>
> Dear NCL/NCAR Graphics Listserv Readers:
>
> We have been struggling to get programs that call NCAR Graphics routines to compile successfully on our Linux machine. The test of the installation as recommended at
>
> http://www.ncl.ucar.edu/Download/build_from_src.shtml
>
> using the "ng4ex gsun01n" example worked successfully. However, when I try the "ncargex cpex08" test, it fails in the compilation step (text output is attached in file "cpile3"). What switch needs to be "flipped" or what file needs to be added to the library or include directories that will allow me to compile programs calling NCAR graphics routines?
>
> Thank you for any assistance that you can provide!
>
> Regards,
> Doug
> --
> Douglas K. Miller
> Professor and Chair
> Atmospheric Sciences Dept.
> UNC-Asheville
> RBH 236A, ATMS
> One University Heights
> Asheville, NC 28804
> Phone: (828) 232-5158
> FAX: (828) 232-5046
>
>
> <cpile3>_______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
More information about the ncl-install
mailing list