Dear NCL users,<br><br>I could run this example without the <i>-lgfortran</i> in the compilation line.<br><br>It has worked with the compiled NCL and with pre-compiled NCL binaries, even the gcc and gfortran versions being different from that used to generate the pre-compiled NCL binaries.<br>
<br>Best regards<br><br>Mateus<br><br><br><div class="gmail_quote">2010/3/17 Mateus Teixeira <span dir="ltr">&lt;<a href="mailto:mateus.teixeira@gmail.com">mateus.teixeira@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Adding more information:<br><br>Even with the error previously mentioned, ncl command was compiled, what let me little confused about the meaning of this error. I&#39;ve executed some basic example NCL scripts and they&#39;ve worked.<br>

<br>When I&#39;ve tried to compile HLU example xy01f, I get the following error:<br><i><br>[mateus@localhost Download]$ ng4ex xy01f<br><br>NCAR Graphics High Level Utility Fortran Example &lt;xy01f&gt;<br><br>  Copying xy01f.f<br>

  Copying xy01.res<br><br>Compiling and linking...<br>gfortran -fPIC -fno-second-underscore -fno-range-check -O -o xy01f xy01f.f -L/usr/local/ncargraphics/lib -L/usr/lib -L/usr/lib/hdf -L/usr/local/lib -L/usr/local/netcdf-4.1/lib -I/usr/local/ncargraphics/include -I/usr/include -I/usr/include/hdf -I/usr/include/libpng12 -I/usr/local/include -I/usr/include/jasper -I/usr/local/netcdf-4.1/include -lhlu -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lpng -lz -lgfortran -lm<br>

/usr/lib/gcc/i686-redhat-linux/4.4.3/../../../crt1.o: In function `_start&#39;:<br>(.text+0x18): undefined reference to `main&#39;<br>collect2: ld returned 1 exit status<br>Executing &lt;xy01f&gt;...<br><br>./xy01f: Command not found.<br>

<br>Finished executing &lt;xy01f&gt;...</i><br><br>Again, I couldn&#39;t understand this error since the NCL was compiled with gcc and gfortran compilers available in the system. Their version are 4.4.3.<br><br>Can anyone figure this problem out?<br>

<br>Best regards,<br><br>Mateus<br><br><div class="gmail_quote">2010/3/17 Mateus Teixeira <span dir="ltr">&lt;<a href="mailto:mateus.teixeira@gmail.com" target="_blank">mateus.teixeira@gmail.com</a>&gt;</span><div><div></div>
<div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear NCL users,<br><br>I&#39;ve got the following error during the compilation of NCL 5.1.1:<br><br><i>Making install in ./ni/src/lib/nio<br>make[5]: Entrando no diretório `/usr/local/src/ncl_ncarg-5.1.1/ni/src/lib/nio&#39;<br>


gcc -ansi -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O  -I../../../.././include -I/usr/include -I/usr/include/hdf -I/usr/include/libpng1<br>2 -I/usr/local/include -I/usr/include/jasper -I/usr/local/netcdf-4.1/include  -DLinux -DMAJOR=2   -DBuildGRIB2   -DNIO_LIB_ONLY  -DSYSV -D_POSI<br>


X_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto    -c -o NclTypedouble.o NclTypedouble.c<br>NclTypedouble.c:24:27: error: NclTypedouble.h: Arquivo ou diretório não encontrado<br>NclTypedouble.c:48:28: error: NclTypelogical.h: Arquivo ou diretório não encontrado<br>


NclTypedouble.c:49:26: error: NclTypefloat.h: Arquivo ou diretório não encontrado<br>In file included from cmpf.h:26,<br>                 from NclTypedouble.c:52:<br>niohlu.h:28:18: error: nioc.h: Arquivo ou diretório não encontrado<br>


NclTypedouble.c:86: error: expected declaration specifiers or ‘...’ before ‘NclScalar’<br>NclTypedouble.c:86: error: expected declaration specifiers or ‘...’ before ‘NclScalar’<br>NclTypedouble.c:86: error: expected declaration specifiers or ‘...’ before ‘NclTypeClass’<br>


<br clear="all">....<br><br>NclTypedouble.c: At top level:<br>NclTypedouble.c:2285: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Ncl_Type_double_divide_type’<br>NclTypedouble.c:2295: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘nclTypedoubleClassRec’<br>


NclTypedouble.c:2371: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘nclTypedoubleClass’<br>NclTypedouble.c:2373: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_NclTypedoubleCreate’<br>

make[5]: ** [NclTypedouble.o] Erro 1<br>
make[5]: Saindo do diretório `/usr/local/src/ncl_ncarg-5.1.1/ni/src/lib/nio&#39;<br>make[4]: ** [install] Erro 2<br>make[4]: Saindo do diretório `/usr/local/src/ncl_ncarg-5.1.1/ni/src/lib&#39;<br></i><br><br>what says that NclTypedouble.h, NclTypelogical.h, NclTypefloat.h, and niohlu.h can&#39;t be found.<br>


<br>I couldn&#39;t find the source of this error. I found these files in<br><br>./ni/src/lib/nio/niohlu.h<br>./ni/src/lib/nio/NclTypedouble.c<br><br>and <br><br>./ni/src/ncl/NclTypefloat.h<br>./ni/src/ncl/NclTypelogical.h<br>


<br>but in ./ni/src/lib/nio/ there are<br><br>./ni/src/lib/nio/NclTypelogical.c.specific<br>./ni/src/lib/nio/NclTypefloat.c.specific<br><br><br>This error looks strange since these files are from NCL itself.<br><br><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/" target="_blank">http://counter.li.org/</a>)<br>




</blockquote></div></div></div><div><div></div><div class="h5"><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/" target="_blank">http://counter.li.org/</a>)<br>
</div></div></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>