linking problems, RH 6.2 alpha

From: Steven Sweet (sweet AT unknown)
Date: Mon Oct 23 2000 - 14:51:47 MDT


Hi,

I have a user with what I suspect (hope) is a fairly straightforward
problem, however I am not that familiar with using NCAR graphics. I have
compiled from source code version 4.1.1 on a dual-Alpha-processor Compaq
running RedHat 6.2. When the user tries to run his code (which has run
successfully on other machines), I get multiple errors of the "undefined
reference to `cpseti_'" variety. The references all appear to be to cp
functions (cpseti, cprect, cpclam, etc).

Based on what I found in the mailing list archive, I have done the
following:

- g2c was not installed, so I installed the most recent package.

- edited ncargf77 so that it included the proper g77 directory with
libg2c.a and set "libextra" to g2c.

The resulting compilation call when ncargf77 is invoked is this:

dfo 9% ncargf77 fig_jin.f
g77 -O fig_jin.f -L/usr/local/ncarg/lib -L/usr/X11R6/lib -L/usr/lib
-L/usr/lib/gcc-lib/alphaev6-unknown-linux-gnu/2.95.2 -lncarg -lncarg_gks
-lncarg_c -lX11 -lg2c

I still get the exact same "undefined reference" errors. The library
/usr/local/ncarb/lib/libncarg.a exists and contains functions of the
"c_cpXXXX" variety. Anyone have an idea of the step I've left out?
Thanks.

Steve

 

-- 
Steven R. Sweet                           System/Network Manager 
School of Fisheries and Ocean Sciences    (907) 474-7092  voice
University of Alaska	                  (907) 474-7204  fax  
Fairbanks, Alaska 99775	                  sweet AT unknown    



This archive was generated by hypermail 2b29 : Wed Oct 25 2000 - 15:23:28 MDT