Hi,<br><br>I think that you need to include '-lgfortran' in the compilation line. Just to test, try to execute the line:<br><br><br>gfortran -fPIC -fno-second-underscore -fno-range-check -o cpex08<br>
cpexcc.f cpex08.f -L/opt/ncl_ncarg-5.1.1/lib -lncarg -lncarg_gks<br>
-lncarg_c -lX11 -lXext -lpng -lz <b>-lgfortran</b><br><br><br>Unfortunately, I don't know how to include this library in the ncargex script.<br><br>Best regards,<br><br>Mateus<br><br><br><br><br><div class="gmail_quote">
2010/4/1 <span dir="ltr"><<a href="mailto:for-spam@arcor.de">for-spam@arcor.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
I am a newbie concerning ncarg and ncl. I downloaded the binaries,<br>
ncl_ncarg-5.1.1.Linux_x86_64_opendap_gcc432.tar.gz<br>
and followed the installation guide, setting pathes etc.<br>
<br>
When I tested ncarg, I got the following output:<br>
<br>
[root@localhost openldap-2.3.43]# ncargex cpex08<br>
<br>
NCAR Graphics Fortran Example <cpex08><br>
<br>
Copying cpex08.f<br>
<br>
Copying cpexcc.f<br>
<br>
Compiling and linking...<br>
gfortran -fPIC -fno-second-underscore -fno-range-check -o cpex08<br>
cpexcc.f cpex08.f -L/opt/ncl_ncarg-5.1.1/lib -lncarg -lncarg_gks<br>
-lncarg_c -lX11 -lXext -lpng -lz<br>
/opt/ncl_ncarg-5.1.1/lib/libncarg.a(dpgetc.o): In function `dpgetc_':<br>
dpgetc.f:(.text+0xb3): undefined reference to `_gfortran_os_error'<br>
dpgetc.f:(.text+0x4c9): undefined reference to `_gfortran_os_error'<br>
/opt/ncl_ncarg-5.1.1/lib/libncarg.a(dpgetr.o): In function `dpgetr_':<br>
dpgetr.f:(.text+0xb0): undefined reference to `_gfortran_os_error'<br>
dpgetr.f:(.text+0x76e): undefined reference to `_gfortran_os_error'<br>
/opt/ncl_ncarg-5.1.1/lib/libncarg.a(dpsetc.o): In function `dpsetc_':<br>
dpsetc.f:(.text+0x105): undefined reference to `_gfortran_os_error'<br>
/opt/ncl_ncarg-5.1.1/lib/libncarg.a(dpsetc.o):dpsetc.f:(.text+0x5b7):<br>
more undefined references to `_gfortran_os_error' follow<br>
collect2: ld returned 1 exit status<br>
<br>
The compile and link failed.<br>
<br>
Anyone can help<br>
<br>
TIA<br>
<br>
--<br>
Dr. Klaus Schwerdtfeger<br>
temporarily:<br>
Institute for Oceanic, Atmospheric & Environmental Technology<br>
Hanoi<br>
+84 167 31 36 504<br>
<a href="http://www.ioaet.org" target="_blank">www.ioaet.org</a><br>
<br>
_______________________________________________<br>
ncl-install mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Mateus da Silva Teixeira<br>Meteorologista<br>Instituto de Pesquisas Meteorológicas - IPMet<br>Universidade Estadual Paulista - UNESP<br>Av. Luis Edmundo Carrijo Coube, 14-01 - Cx. Postal 281 - CEP 17033-360<br>
Bauru - SP - Brasil<br>Fone: +55 14 3103-6030 / fax: 3203-3649<br><br>Registered Linux User #466740 (<a href="http://counter.li.org/">http://counter.li.org/</a>)<br>