Dear NCL users,
I'm trying to run the example presented in
http://www.ncl.ucar.edu/Applications/BasicExamples/XyPlot/xy01.shtml
but I'm getting the following error message during compilation:
$ ng4ex xy01f
NCAR Graphics High Level Utility Fortran Example <xy01f>
Copying xy01f.f
Copying xy01.res
Compiling and linking...
gfortran -fPIC -fno-second-underscore -fno-range-check -o xy01f xy01f.f
-L/usr/local/ncarg/lib -I/usr/local/ncarg/include -lhlu -lncarg -lncarg_gks
-lncarg_c -lX11 -lXext -lpng -lz -lgfortran -lm
/usr/lib/gcc/i686-redhat-linux/4.4.3/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
Executing <xy01f>...
./xy01f: Command not found.
Finished executing <xy01f>...
I've tried to compile it directly with
gfortran -L/usr/local/ncarg/lib -I/usr/local/ncarg/include -lncarg
-lncarg_gks -lncarg_c -lhlu -lX11 -lXext -lpng -lz -lgfortran xy01f.f
but it gaves the following errors:
/tmp/ccrkSpMj.o: In function `MAIN__':
xy01f.f:(.text+0xc6): undefined reference to `nhlfinitialize_'
xy01f.f:(.text+0xe1): undefined reference to `nhlfrlcreate_'
xy01f.f:(.text+0xec): undefined reference to `nhlfrlclear_'
xy01f.f:(.text+0x11e): undefined reference to `nhlfrlsetstring_'
xy01f.f:(.text+0x150): undefined reference to `nhlfrlsetstring_'
xy01f.f:(.text+0x176): undefined reference to `nhlfappclass_'
.....
Maybe is it a installation problem?
I'm using NCL 5.1.1.
Best regards,
-- Mateus da Silva Teixeira Meteorologista Instituto de Pesquisas Meteorológicas - IPMet Universidade Estadual Paulista - UNESP Av. Luis Edmundo Carrijo Coube, 14-01 - Cx. Postal 281 - CEP 17033-360 Bauru - SP - Brasil Fone: +55 14 3103-6030 / fax: 3203-3649 Registered Linux User #466740 (http://counter.li.org/)
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Mar 13 13:49:51 2010
This archive was generated by hypermail 2.1.8 : Wed Mar 17 2010 - 13:00:16 MDT