Hi friends,
I am having trouble in compiling plotting package. I am using Cygwin on WindowsXP. I downloaded netcdf3.6.2 when compiling ROMS, and I installed NCL succesfully (precompiled binaries and unzip them under Cygwin/usr/local). I changed FORT to g95. When I try the command make (for upwelling problem) it produces *.f90 files under MyDir/src. However it doesnt compile correctly, and giving me the messages below. Could you please help me? Do you think it is because the binaries of NCL for Cygwin was compiled with g95 and I need to get the NCL source and compile myself with gfortran or sth? Thank you.
$ make
which: no g95 in (/usr/local/bin:/usr/bin:/cygdrive/c/Program Files/Microsoft Vi
sual Studio/Common/Tools:/cygdrive/c/Program Files/Microsoft Visual Studio/Commo
n/Msdev98/BIN:/cygdrive/c/Program Files/Microsoft Visual Studio/DF98/BIN:/cygdri
ve/c/Program Files/Microsoft Visual Studio/VC98/BIN:/cygdrive/c/WINDOWS/system32
:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files
/ATI Technologies/ATI Control Panel:/cygdrive/c/Program Files/MATLAB/R2008a/bin:
/cygdrive/c/Program Files/MATLAB/R2008a/bin/win32)
/usr/bin/cpp -P -traditional -DCYGWIN -I/usr/g95soft/netcdf/include -DCYGWIN -DI
686 -DG95 -DNCARG441 -Drmdocinc -IInclude -IUtility Drivers/cnt.F > cnt.f90
Bin/cpp_clean cnt.f90
c -O3 -ffast-math cnt.f90
make: c: Command not found
make: [cnt.o] Error 127 (ignored)
/usr/bin/cpp -P -traditional -DCYGWIN -I/usr/g95soft/netcdf/include -DCYGWIN -DI
686 -DG95 -DNCARG441 -Drmdocinc -IInclude -IUtility Utility/cpmpxy2d.F > cpmpxy2
d.f90
Bin/cpp_clean cpmpxy2d.f90
c -O3 -ffast-math cpmpxy2d.f90
make: c: Command not found
make: [cpmpxy2d.o] Error 127 (ignored)
/usr/bin/cpp -P -traditional -DCYGWIN -I/usr/g95soft/netcdf/include -DCYGWIN -DI
686 -DG95 -DNCARG441 -Drmdocinc -IInclude -IUtility Utility/mapeod.F > mapeod.f9
0
Bin/cpp_clean mapeod.f90
c -O3 -ffast-math mapeod.f90
make: c: Command not found
make: [zisopyc.o] Error 127 (ignored)
ar -r libUTIL.a areafill.o areamask.o barlab.o bcintrp.o bernoulli.o box.o bv_fr
eq.o caldate.o cfield.o cgrid.o checkstrm.o clrbox.o cnt_frame.o cntcolor.o cnti
nt.o cntpack.o colorbar.o colram.o cpmpxy2d.o cpmpxz2d.o crash.o curlz.o cvector
.o datestr.o day_code.o dens.o depth_iso.o depth_lab.o dombox.o draw_line.o draw
_user.o drawcl.o entropy.o ertel.o fdiag.o filter.o fldnam2id.o geodesic_dist.o
get_2dfld.o get_3dfld.o get_ape.o get_bernoulli.o get_bvf.o get_date.o get_dpres
.o get_entropy.o get_ertel.o get_hdiv.o get_hslope.o get_isosur.o get_jebar.o ge
t_nc1dat.o get_nc2dat.o get_nc2pos.o get_nc3dat.o get_nc3pos.o get_ncobs.o get_p
ig.o get_pltday.o get_pv.o get_rig.o get_rvor.o get_scoor.o get_wcurl.o gksinit.
o great_int.o hbackground.o hindices.o hordiv.o inside.o jebar.o landmask.o lens
tr.o lintrp.o mapeod.o maptitles.o mskerr.o mskscl.o opencdf.o read_fname.o read
pal.o readpar.o relvor.o ri_number.o sec_axis.o sec_frame.o sec_rotvec.o setcolp
al.o slevels.o spline.o splint.o streamlines.o stumsl.o stumxy.o svel.o time_ind
x.o vbackground.o vecmag.o vecpack.o velocity.o viewport.o vindices.o vvumxy.o w
hat_flds.o wind_barbs.o xhslice.o xsection.o zgrid.o zisopyc.o
ar: creating libUTIL.a
ar: areafill.o: No such file or directory
make: *** [libUTIL.a] Error 1
plotting package help please
Re: plotting package help please
If you don't have g95, then you shouldn't put it as FORT. Try again with gfortran and see what happens - it may or may not play nicely with libraries compiled with g95, but that's not your current problem.
Re: plotting package help please
Kate thanks a lot for your reply. I couldnt find CYGWIN-gfortran.mk under MyDir/source/compilers. I copied it from roms/trunk/compilers to MyDir/source/compilers. This time I get the message that cnt.f90 doesnot exist and after that under /MyDir/src it creates one and when I re'make' it, the message is cpmpxy2d.f90 not found (given below)
$ make
/usr/bin/cpp -P -traditional -DCYGWIN -DI686 -DGFORTRAN -DNCARG441 -Drmdocinc -I
Include -IUtility Drivers/cnt.F > cnt.f90
cnt.f90
make: cnt.f90: Command not found
make: *** [cnt.f90] Error 127
$ make
/usr/bin/gfortran-4 -c -frepack-arrays -O3 -ffast-math cnt.f90
/usr/bin/cpp -P -traditional -DCYGWIN -DI686 -DGFORTRAN -DNCARG441 -Drmdocinc -I
Include -IUtility Utility/cpmpxy2d.F > cpmpxy2d.f90
cpmpxy2d.f90
make: cpmpxy2d.f90: Command not found
make: *** [cpmpxy2d.f90] Error 127
Thanks a lot for your help.
$ make
/usr/bin/cpp -P -traditional -DCYGWIN -DI686 -DGFORTRAN -DNCARG441 -Drmdocinc -I
Include -IUtility Drivers/cnt.F > cnt.f90
cnt.f90
make: cnt.f90: Command not found
make: *** [cnt.f90] Error 127
$ make
/usr/bin/gfortran-4 -c -frepack-arrays -O3 -ffast-math cnt.f90
/usr/bin/cpp -P -traditional -DCYGWIN -DI686 -DGFORTRAN -DNCARG441 -Drmdocinc -I
Include -IUtility Utility/cpmpxy2d.F > cpmpxy2d.f90
cpmpxy2d.f90
make: cpmpxy2d.f90: Command not found
make: *** [cpmpxy2d.f90] Error 127
Thanks a lot for your help.
Re: plotting package help please
Compiling files happen in three phases:
- cpp into xx.f90
- cleaning xx.f90
- compiling xx.f90
Re: plotting package help please
Hi Kate I added that CLEAN statement which is missing from CYGWIN-gfortran.mk. It created all the f90 versions of f ones in Utility. I also downloaded g95 and try to 'make' with CYGWIN-g95.mk.However in the end I get the same results even though I specified the NCARG_ROOT directory correctly (as below where my netcdf is located) and I changed the fort to g95 as well. (sorry for asking too much). Thanks a lot again.
BIN := $(BIN).exe
FC := g95
FFLAGS :=
CPP := /usr/bin/cpp
CPPFLAGS := -P -traditional -DCYGWIN
CLEAN := Bin/cpp_clean
NCARG_ROOT ?= $(HOME)/software
LDFLAGS :=
AR := ar
ARFLAGS := -r
RM := rm -f
RANLIB := ranlib
PERL := perl
MDEPFLAGS := --cpp --fext=f90 --file=-
gives:
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x16): undefined reference to `_
strset_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x3f): undefined reference to `_
stseti_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x69): undefined reference to `_
stseti_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x85): undefined reference to `_
stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0xa8): undefined reference to `_
stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0xc4): undefined reference to `_
stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0xe7): undefined reference to `_
stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x103): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x11f): undefined reference to `
_stseti_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x13b): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x157): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x173): undefined reference to `
_stseti_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x18f): undefined reference to `
_stseti_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x1ab): undefined reference to `
_stseti_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x1c7): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x1e3): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x20d): undefined reference to `
_stseti_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x228): undefined reference to `
_gsplci_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x268): undefined reference to `
_stinit_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x296): undefined reference to `
_stream_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x2a8): undefined reference to `
_gsplci_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x2cf): undefined reference to `
_stseti_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x2eb): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x307): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x323): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x33f): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x358): undefined reference to `
_arinam_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x3c2): undefined reference to `
_arpram_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x406): undefined reference to `
_arscam_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x428): undefined reference to `
_stseti_'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x16): undefined reference to `_vvrset_'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x3f): undefined reference to `_vvseti_'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x5b): undefined reference to `_vvseti_'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x7f): undefined reference to `_vvsetc_'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0xa9): undefined reference to `_vvseti_'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0xc5): undefined reference to `_vvsetr_'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0xe8): undefined reference to `_vvsetr_'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x104): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x127): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x143): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x15f): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x17a): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x195): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x1cd): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x1e9): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x205): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x221): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x23d): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x267): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x2bb): undefined reference to `_vvinit_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x2d7): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x2f3): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x30f): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x32a): undefined reference to `_vvgetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x345): undefined reference to `_vvgetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x36c): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x387): undefined reference to `_vvgetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x3ca): undefined reference to `_getset_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x3f9): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x415): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x42b): undefined reference to `_vvudmv_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x443): undefined reference to `_vvectr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x488): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x4a4): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x4c7): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x4e3): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x506): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x530): undefined reference to `_vvsetc_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x54c): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x568): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x584): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x5a0): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x5ce): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x5e7): undefined reference to `_arinam_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x657): undefined reference to `_arpram_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x69b): undefined reference to `_arscam_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x6bc): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x6e3): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x6ff): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x783): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x7a7): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x7c2): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x87f): undefined reference to `_gsclip_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x8b4): undefined reference to `_gsclip_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x8cb): undefined reference to `_gsplci_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x8e6): undefined reference to `_gsplci_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x910): undefined reference to `_vvsetc_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x934): undefined reference to `_vvsetc_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x957): undefined reference to `_vvsetr_
'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x52): undefined reference to `_wm
setr_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x9e): undefined reference to `_se
t_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0xaa): undefined reference to `_gs
clip_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x265): undefined reference to `_w
mbarb_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x304): undefined reference to `_m
aptrn_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x3ed): undefined reference to `_a
rinam_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x4d6): undefined reference to `_a
rpram_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x51a): undefined reference to `_a
rscam_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x53b): undefined reference to `_w
mseti_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x586): undefined reference to `_w
mseti_'
libUTIL.a(crash.o):crash.f90:(.text+0x33): undefined reference to `_clsgks_'
libUTIL.a(draw_user.o):draw_user.f90:(.text+0x21): undefined reference to `_sflu
sh_'
libUTIL.a(draw_user.o):draw_user.f90:(.text+0x37): undefined reference to `_gspl
ci_'
libUTIL.a(draw_user.o):draw_user.f90:(.text+0x4c): undefined reference to `_gslw
sc_'
libUTIL.a(draw_user.o):draw_user.f90:(.text+0x65): undefined reference to `_sflu
sh_'
libUTIL.a(draw_user.o):draw_user.f90:(.text+0x71): undefined reference to `_gspl
ci_'
libUTIL.a(draw_user.o):draw_user.f90:(.text+0x7d): undefined reference to `_gslw
sc_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x60): undefined reference to `_mapbla
_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x1ce): undefined reference to `_maptr
n_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x1f0): undefined reference to `_maptr
n_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x212): undefined reference to `_maptr
n_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x234): undefined reference to `_maptr
n_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x338): undefined reference to `_mapiq
a_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x369): undefined reference to `_mapit
a_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x3ae): undefined reference to `_mapiq
a_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x42d): undefined reference to `_mapit
a_'
libUTIL.a(colorbar.o):colorbar.f90:(.text+0x116): undefined reference to `_set_'
libUTIL.a(colorbar.o):colorbar.f90:(.text+0x32a): undefined reference to `_plchh
q_'
libUTIL.a(colorbar.o):colorbar.f90:(.text+0x336): undefined reference to `_gslws
c_'
libUTIL.a(colorbar.o):colorbar.f90:(.text+0x34e): undefined reference to `_gslws
c_'
libUTIL.a(colorbar.o):colorbar.f90:(.text+0x4d8): undefined reference to `_plchh
q_'
libUTIL.a(colorbar.o):colorbar.f90:(.text+0x63e): undefined reference to `_plchh
q_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x1d1): undefined reference to `_map
trn_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x1f1): undefined reference to `_frs
tpt_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x3e9): undefined reference to `_map
trn_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x431): undefined reference to `_plc
hhq_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x443): undefined reference to `_frs
tpt_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x61c): undefined reference to `_map
trn_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x63c): undefined reference to `_frs
tpt_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x784): undefined reference to `_gsc
r_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x789): undefined reference to `_sfl
ush_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x797): undefined reference to `_gsp
lci_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x96f): undefined reference to `_map
trn_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x9a9): undefined reference to `_plc
hhq_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x9dc): undefined reference to `_vec
tor_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x9f3): undefined reference to `_vec
tor_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0xa0d): undefined reference to `_vec
tor_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0xa56): undefined reference to `_plc
hhq_'
libUTIL.a(gksinit.o):gksinit.f90:(.text+0x7): undefined reference to `_opngks_'
libUTIL.a(gksinit.o):gksinit.f90:(.text+0x13): undefined reference to `_gsclip_'
libUTIL.a(gksinit.o):gksinit.f90:(.text+0x1f): undefined reference to `_gsasf_'
libUTIL.a(gksinit.o):gksinit.f90:(.text+0x2b): undefined reference to `_gsfais_'
libUTIL.a(colram.o):colram.f90:(.text+0x81): undefined reference to `_mapaci_'
libUTIL.a(colram.o):colram.f90:(.text+0xdc): undefined reference to `_gsfaci_'
libUTIL.a(colram.o):colram.f90:(.text+0x100): undefined reference to `_gfa_'
libUTIL.a(colram.o):colram.f90:(.text+0x11d): undefined reference to `_gsfaci_'
libUTIL.a(colram.o):colram.f90:(.text+0x141): undefined reference to `_gfa_'
libUTIL.a(colram.o):colram.f90:(.text+0x1eb): undefined reference to `_mapaci_'
libUTIL.a(drawcl.o):drawcl.f90:(.text+0x67): undefined reference to `_curved_'
libUTIL.a(clrbox.o):clrbox.f90:(.text+0x1f): undefined reference to `_gsfaci_'
libUTIL.a(clrbox.o):clrbox.f90:(.text+0x3a): undefined reference to `_gfa_'
libUTIL.a(clrbox.o):clrbox.f90:(.text+0x4f): undefined reference to `_gslwsc_'
libUTIL.a(clrbox.o):clrbox.f90:(.text+0x5f): undefined reference to `_gpl_'
libUTIL.a(clrbox.o):clrbox.f90:(.text+0x6b): undefined reference to `_gslwsc_'
libUTIL.a(box.o):box.f90:(.text+0x48): undefined reference to `_getset_'
libUTIL.a(box.o):box.f90:(.text+0x87): undefined reference to `_gsfais_'
libUTIL.a(box.o):box.f90:(.text+0x93): undefined reference to `_gsplci_'
libUTIL.a(box.o):box.f90:(.text+0xad): undefined reference to `_gpl_'
collect2: ld returned 1 exit status
make: *** [/home/berk/bin/cnt] Error 1
BIN := $(BIN).exe
FC := g95
FFLAGS :=
CPP := /usr/bin/cpp
CPPFLAGS := -P -traditional -DCYGWIN
CLEAN := Bin/cpp_clean
NCARG_ROOT ?= $(HOME)/software
LDFLAGS :=
AR := ar
ARFLAGS := -r
RM := rm -f
RANLIB := ranlib
PERL := perl
MDEPFLAGS := --cpp --fext=f90 --file=-
gives:
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x16): undefined reference to `_
strset_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x3f): undefined reference to `_
stseti_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x69): undefined reference to `_
stseti_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x85): undefined reference to `_
stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0xa8): undefined reference to `_
stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0xc4): undefined reference to `_
stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0xe7): undefined reference to `_
stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x103): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x11f): undefined reference to `
_stseti_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x13b): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x157): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x173): undefined reference to `
_stseti_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x18f): undefined reference to `
_stseti_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x1ab): undefined reference to `
_stseti_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x1c7): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x1e3): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x20d): undefined reference to `
_stseti_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x228): undefined reference to `
_gsplci_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x268): undefined reference to `
_stinit_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x296): undefined reference to `
_stream_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x2a8): undefined reference to `
_gsplci_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x2cf): undefined reference to `
_stseti_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x2eb): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x307): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x323): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x33f): undefined reference to `
_stsetr_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x358): undefined reference to `
_arinam_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x3c2): undefined reference to `
_arpram_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x406): undefined reference to `
_arscam_'
libUTIL.a(streamlines.o):streamlines.f90:(.text+0x428): undefined reference to `
_stseti_'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x16): undefined reference to `_vvrset_'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x3f): undefined reference to `_vvseti_'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x5b): undefined reference to `_vvseti_'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x7f): undefined reference to `_vvsetc_'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0xa9): undefined reference to `_vvseti_'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0xc5): undefined reference to `_vvsetr_'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0xe8): undefined reference to `_vvsetr_'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x104): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x127): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x143): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x15f): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x17a): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x195): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x1cd): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x1e9): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x205): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x221): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x23d): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x267): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x2bb): undefined reference to `_vvinit_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x2d7): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x2f3): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x30f): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x32a): undefined reference to `_vvgetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x345): undefined reference to `_vvgetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x36c): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x387): undefined reference to `_vvgetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x3ca): undefined reference to `_getset_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x3f9): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x415): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x42b): undefined reference to `_vvudmv_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x443): undefined reference to `_vvectr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x488): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x4a4): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x4c7): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x4e3): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x506): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x530): undefined reference to `_vvsetc_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x54c): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x568): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x584): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x5a0): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x5ce): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x5e7): undefined reference to `_arinam_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x657): undefined reference to `_arpram_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x69b): undefined reference to `_arscam_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x6bc): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x6e3): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x6ff): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x783): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x7a7): undefined reference to `_vvseti_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x7c2): undefined reference to `_vvsetr_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x87f): undefined reference to `_gsclip_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x8b4): undefined reference to `_gsclip_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x8cb): undefined reference to `_gsplci_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x8e6): undefined reference to `_gsplci_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x910): undefined reference to `_vvsetc_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x934): undefined reference to `_vvsetc_
'
libUTIL.a(vecpack.o):vecpack.f90:(.text+0x957): undefined reference to `_vvsetr_
'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x52): undefined reference to `_wm
setr_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x9e): undefined reference to `_se
t_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0xaa): undefined reference to `_gs
clip_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x265): undefined reference to `_w
mbarb_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x304): undefined reference to `_m
aptrn_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x3ed): undefined reference to `_a
rinam_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x4d6): undefined reference to `_a
rpram_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x51a): undefined reference to `_a
rscam_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x53b): undefined reference to `_w
mseti_'
libUTIL.a(wind_barbs.o):wind_barbs.f90:(.text+0x586): undefined reference to `_w
mseti_'
libUTIL.a(crash.o):crash.f90:(.text+0x33): undefined reference to `_clsgks_'
libUTIL.a(draw_user.o):draw_user.f90:(.text+0x21): undefined reference to `_sflu
sh_'
libUTIL.a(draw_user.o):draw_user.f90:(.text+0x37): undefined reference to `_gspl
ci_'
libUTIL.a(draw_user.o):draw_user.f90:(.text+0x4c): undefined reference to `_gslw
sc_'
libUTIL.a(draw_user.o):draw_user.f90:(.text+0x65): undefined reference to `_sflu
sh_'
libUTIL.a(draw_user.o):draw_user.f90:(.text+0x71): undefined reference to `_gspl
ci_'
libUTIL.a(draw_user.o):draw_user.f90:(.text+0x7d): undefined reference to `_gslw
sc_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x60): undefined reference to `_mapbla
_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x1ce): undefined reference to `_maptr
n_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x1f0): undefined reference to `_maptr
n_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x212): undefined reference to `_maptr
n_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x234): undefined reference to `_maptr
n_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x338): undefined reference to `_mapiq
a_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x369): undefined reference to `_mapit
a_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x3ae): undefined reference to `_mapiq
a_'
libUTIL.a(landmask.o):landmask.f90:(.text+0x42d): undefined reference to `_mapit
a_'
libUTIL.a(colorbar.o):colorbar.f90:(.text+0x116): undefined reference to `_set_'
libUTIL.a(colorbar.o):colorbar.f90:(.text+0x32a): undefined reference to `_plchh
q_'
libUTIL.a(colorbar.o):colorbar.f90:(.text+0x336): undefined reference to `_gslws
c_'
libUTIL.a(colorbar.o):colorbar.f90:(.text+0x34e): undefined reference to `_gslws
c_'
libUTIL.a(colorbar.o):colorbar.f90:(.text+0x4d8): undefined reference to `_plchh
q_'
libUTIL.a(colorbar.o):colorbar.f90:(.text+0x63e): undefined reference to `_plchh
q_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x1d1): undefined reference to `_map
trn_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x1f1): undefined reference to `_frs
tpt_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x3e9): undefined reference to `_map
trn_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x431): undefined reference to `_plc
hhq_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x443): undefined reference to `_frs
tpt_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x61c): undefined reference to `_map
trn_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x63c): undefined reference to `_frs
tpt_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x784): undefined reference to `_gsc
r_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x789): undefined reference to `_sfl
ush_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x797): undefined reference to `_gsp
lci_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x96f): undefined reference to `_map
trn_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x9a9): undefined reference to `_plc
hhq_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x9dc): undefined reference to `_vec
tor_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0x9f3): undefined reference to `_vec
tor_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0xa0d): undefined reference to `_vec
tor_'
libUTIL.a(draw_line.o):draw_line.f90:(.text+0xa56): undefined reference to `_plc
hhq_'
libUTIL.a(gksinit.o):gksinit.f90:(.text+0x7): undefined reference to `_opngks_'
libUTIL.a(gksinit.o):gksinit.f90:(.text+0x13): undefined reference to `_gsclip_'
libUTIL.a(gksinit.o):gksinit.f90:(.text+0x1f): undefined reference to `_gsasf_'
libUTIL.a(gksinit.o):gksinit.f90:(.text+0x2b): undefined reference to `_gsfais_'
libUTIL.a(colram.o):colram.f90:(.text+0x81): undefined reference to `_mapaci_'
libUTIL.a(colram.o):colram.f90:(.text+0xdc): undefined reference to `_gsfaci_'
libUTIL.a(colram.o):colram.f90:(.text+0x100): undefined reference to `_gfa_'
libUTIL.a(colram.o):colram.f90:(.text+0x11d): undefined reference to `_gsfaci_'
libUTIL.a(colram.o):colram.f90:(.text+0x141): undefined reference to `_gfa_'
libUTIL.a(colram.o):colram.f90:(.text+0x1eb): undefined reference to `_mapaci_'
libUTIL.a(drawcl.o):drawcl.f90:(.text+0x67): undefined reference to `_curved_'
libUTIL.a(clrbox.o):clrbox.f90:(.text+0x1f): undefined reference to `_gsfaci_'
libUTIL.a(clrbox.o):clrbox.f90:(.text+0x3a): undefined reference to `_gfa_'
libUTIL.a(clrbox.o):clrbox.f90:(.text+0x4f): undefined reference to `_gslwsc_'
libUTIL.a(clrbox.o):clrbox.f90:(.text+0x5f): undefined reference to `_gpl_'
libUTIL.a(clrbox.o):clrbox.f90:(.text+0x6b): undefined reference to `_gslwsc_'
libUTIL.a(box.o):box.f90:(.text+0x48): undefined reference to `_getset_'
libUTIL.a(box.o):box.f90:(.text+0x87): undefined reference to `_gsfais_'
libUTIL.a(box.o):box.f90:(.text+0x93): undefined reference to `_gsplci_'
libUTIL.a(box.o):box.f90:(.text+0xad): undefined reference to `_gpl_'
collect2: ld returned 1 exit status
make: *** [/home/berk/bin/cnt] Error 1
Re: plotting package help please
These symbols should be defined in the NCARG libraries. Can you show the actual link statement? Is it linking with ncargf77 or ncargf90?
No, it's where the NCL root is, not the netcdf root. Do you have NCL? It contains the NCARG libraries.I specified the NCARG_ROOT directory correctly (as below where my netcdf is located)