[ncl-install] Failed test of ncargex cpex08
Mateus Teixeira
mateus.teixeira at gmail.com
Thu Apr 1 10:46:12 MDT 2010
Hi,
I think that you need to include '-lgfortran' in the compilation line. Just
to test, try to execute the line:
gfortran -fPIC -fno-second-underscore -fno-range-check -o cpex08
cpexcc.f cpex08.f -L/opt/ncl_ncarg-5.1.1/lib -lncarg -lncarg_gks
-lncarg_c -lX11 -lXext -lpng -lz *-lgfortran*
Unfortunately, I don't know how to include this library in the ncargex
script.
Best regards,
Mateus
2010/4/1 <for-spam at arcor.de>
> Hi all,
>
> I am a newbie concerning ncarg and ncl. I downloaded the binaries,
> ncl_ncarg-5.1.1.Linux_x86_64_opendap_gcc432.tar.gz
> and followed the installation guide, setting pathes etc.
>
> When I tested ncarg, I got the following output:
>
> [root at localhost openldap-2.3.43]# ncargex cpex08
>
> NCAR Graphics Fortran Example <cpex08>
>
> Copying cpex08.f
>
> Copying cpexcc.f
>
> Compiling and linking...
> gfortran -fPIC -fno-second-underscore -fno-range-check -o cpex08
> cpexcc.f cpex08.f -L/opt/ncl_ncarg-5.1.1/lib -lncarg -lncarg_gks
> -lncarg_c -lX11 -lXext -lpng -lz
> /opt/ncl_ncarg-5.1.1/lib/libncarg.a(dpgetc.o): In function `dpgetc_':
> dpgetc.f:(.text+0xb3): undefined reference to `_gfortran_os_error'
> dpgetc.f:(.text+0x4c9): undefined reference to `_gfortran_os_error'
> /opt/ncl_ncarg-5.1.1/lib/libncarg.a(dpgetr.o): In function `dpgetr_':
> dpgetr.f:(.text+0xb0): undefined reference to `_gfortran_os_error'
> dpgetr.f:(.text+0x76e): undefined reference to `_gfortran_os_error'
> /opt/ncl_ncarg-5.1.1/lib/libncarg.a(dpsetc.o): In function `dpsetc_':
> dpsetc.f:(.text+0x105): undefined reference to `_gfortran_os_error'
> /opt/ncl_ncarg-5.1.1/lib/libncarg.a(dpsetc.o):dpsetc.f:(.text+0x5b7):
> more undefined references to `_gfortran_os_error' follow
> collect2: ld returned 1 exit status
>
> The compile and link failed.
>
> Anyone can help
>
> TIA
>
> --
> Dr. Klaus Schwerdtfeger
> temporarily:
> Institute for Oceanic, Atmospheric & Environmental Technology
> Hanoi
> +84 167 31 36 504
> www.ioaet.org
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
--
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/)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20100401/735cae62/attachment.html
More information about the ncl-install
mailing list