<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div><div>Hi</div><div>I use icc and ifort to compile ncl. The system is CentOS.</div><div>There is an error when make ncl:</div>
<div>icc -ansi -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/local/include -O2 -o ncl Ncl.o io.o NclHLUObj.o scanner.o parser.o MathFuncs.o NclTypedouble.o NclTypefloat.o<span style="white-space: pre; ">                        </span>NclTypeint.o NclTypelogical.o <span style="white-space: pre; ">                        </span>NclTypelong.o NclTypeobj.o<span style="white-space: pre; ">                        </span>NclTypeshort.o NclTypestring.o <span style="white-space: pre; ">                        </span>NclTypebyte.o NclTypechar.o TypeSupport.o <span style="white-space: pre; ">                        </span>NclMultiDValData.o AddFileFormats.o AttSupport.o DataSupport.o<span style="white-space: pre; ">                        </span>FileSupport.o Formats.o GetGrids.o <span style="white-space: pre; ">                        </span>InitData.o Memory.o NclAtt.o NclCCM.o <span style="white-space: pre; ">                        </span>NclCoordVar.o NclData.o NclFile.o NclFileVar.o <span style="white-space: pre; ">                        </span>NclGRIB.o NclHDF.o NclMultiDValnclfileData.o <span style="white-space: pre; ">                        </span>NclNetCdf.o NclOneDValCoordData.o NclType.o <span style="white-space: pre; ">                        </span>NclTypelist.o NclVar.o VarSupport.o <span style="white-space: pre; ">                        </span>ctoiee.o date.o qu2reg3.o rowina3.o scm0.o ncepcode.o NclGRIB2.o AddBuiltIns.o AddHLUObjs.o<span style="white-space: pre; ">                        </span>AddIntrinsics.o Execute.o <span style="white-space: pre; ">                        </span>Machine.o OpsFuncs.o Printtoken.o SrcTree.o <span style="white-space: pre; ">                        </span>Symbol.o Translate.o <span style="white-space: pre; ">                        </span>NclHLUVar.o HLUSupport.o<span style="white-space: pre; ">                        </span>NclMultiDValHLUObjData.o <span style="white-space: pre; ">                        </span>BuiltInSupport.o BuiltInFuncs.o<span style="white-space: pre; ">                        </span>userAddProto.o userAddFuncs.o <span style="white-space: pre; ">                        </span>HLUFunctions.o yywrap.o craybin.o <span style="white-space: pre; ">                        </span>complete.o editline.o sysunix.o ListSupport.o <span style="white-space: pre; ">                        </span>NclList.o NclMultiDVallistData.o fortranio.o -L../../.././ni/src/lib/nfp -lnfp -L../../.././ni/src/lib/nfpfort -lnfpfort -L../../.././ni/src/lib/hlu -lhlu -L../../.././ncarg2d/src/libncarg -lncarg -L../../.././ncarg2d/src/libncarg_gks -lncarg_gks -L../../.././common/src/libncarg_c -lncarg_c -L../../.././ngmath/src/lib -lngmath -L/mnt/home/xqiu/Program/IntelCompiled/Ncl_ncarg-5.1.1/lib -L/usr/lib -L/usr/lib/X11 -L/mnt/home/xqiu/Program/IntelCompiled/lib -L/opt/intel/Compiler/11.1/064/lib/ia32 -lnetcdf -lhdf5_hl -lhdf5 -lsz -lmfhdf -ldf -ljpeg -lz -lsz -lgrib2c -ljasper -lpng -lz -lpng -lz -L../../.././external/sphere3.1_dp -lsphere3.1_dp -L../../.././external/fftpack5_dp -lfftpack5_dp -L../../.././external/lapack -llapack_ncl -L../../.././external/blas -lblas_ncl -lXpm -lX11 -lXext -lifcore -lm -ldl </div>
<div>/mnt/home/xqiu/Program/IntelCompiled/lib/libjasper.a(jas_stream.o): In function `jas_stream_tmpfile':</div><div>jas_stream.c:(.text+0x528): warning: the use of `tmpnam' is dangerous, better use `mkstemp'</div>
<div>../../.././ni/src/lib/nfpfort/libnfpfort.a(writematrix.o): In function `writematrixi_':</div><div>writematrix.f:(.text+0x45b): undefined reference to `flush_'</div><div>../../.././ni/src/lib/nfpfort/libnfpfort.a(writematrix.o): In function `writematrixf_':</div>
<div>writematrix.f:(.text+0xcbb): undefined reference to `flush_'</div><div>../../.././ni/src/lib/nfpfort/libnfpfort.a(writematrix.o): In function `writematrixd_':</div><div>writematrix.f:(.text+0x151b): undefined reference to `flush_'</div>
<div>../../.././ni/src/lib/nfpfort/libnfpfort.a(writematrix.o): In function `writematrixb_':</div><div>writematrix.f:(.text+0x1d52): undefined reference to `flush_'</div><div>../../.././ni/src/lib/nfpfort/libnfpfort.a(writematrix.o): In function `writematrixs_':</div>
<div>writematrix.f:(.text+0x2597): undefined reference to `flush_'</div><div>make[3]: *** [ncl] Error 1</div><div>make[3]: Leaving directory `/mnt/home/xqiu/Program/IntelCompiled/Temp/ncl_ncarg-5.1.1/ni/src/ncl'</div>
<div><br></div>There is a subroutine named "flush" in writematrix.f. I read the README file.</div><div>But it only provides method for xlf. How about icc ?</div><div>Thanks.</div><div><br></div><div>brick</div></span>