compiler incompatibility??

From: Nuss, Wendell (CIV) <nuss_at_nyahnyahspammersnyahnyah>
Date: Fri Oct 28 2011 - 11:23:46 MDT


I've downloaded precompiled NCAR Graphics and want to link the libraries into my code that uses ncarg routines for plotting. Upon trying to link everything I get an error message as noted in the output pasted below. What's the issue?

gfortran -g -o visual_mac visual-new.o ./setup/setup.a ./setup/maptrans/maptrans.a ./cominput/cominput.a ./utilities/utilities.a ./utilities/satellite/satellite.a ./utilities/obs/obs.a ./utilities/grids/grids.a ./utilities/plotting/plotting.a ./utilities/computation/computation.a ./utilities/conversion/conversion.a ./utilities/operate/operate.a ./analysis/libs/gemlib/gemlib.a ./analysis/libs/linpack/linpack.a -L/Applications/ncl_ncarg-6.0.0.MacOS_10.6_64bit_nodap_gcc421/lib -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11 -lpng
Undefined symbols for architecture x86_64:
  "__gfortran_os_error", referenced from:
      _icfell_ in libncarg.a(icfell.o)
      _cpgetc_ in libncarg.a(cpgetc.o)
      _pcfopn_ in libncarg.a(pcfopn.o)
      _dpgetc_ in libncarg.a(dpgetc.o)
      _dpgetr_ in libncarg.a(dpgetr.o)
      _dpsetc_ in libncarg.a(dpsetc.o)
      _dpsetr_ in libncarg.a(dpsetr.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status

Thanks for any input. I'm running this on IMAC under Lion OS X 10.7 with Xcode 4.1 downloaded and gfortran 4.2.1 installed.

Wendell Nuss

ncl-install mailing list
List instructions, subscriber options, unsubscribe:
Received on Fri Oct 28 11:23:53 2011

This archive was generated by hypermail 2.1.8 : Tue Nov 01 2011 - 13:43:19 MDT