<div dir="ltr"><div>What version of NCL are you using?<br><br></div>%&gt; ncl -V<br><br>======================================<br><div><div>I get a similar error on my MAC with 6.3.0 <br><div><br></div><div>================  ex.f ===================<br></div><div>C NCLFORTSTART<br>      SUBROUTINE EX (II,XX)<br>      INTEGER II<br>      REAL XX<br>C NCLEND<br>      II = II + 5<br>      XX = XX - 12.345<br>      RETURN<br>      END<br>========================================<br>%&gt; WRAPIT ex.f<br> <br>WRAPIT Version: 120209<br>In file included from /Users/shea/devel/include/ncarg/hlu/hlu.h:49:0,<br>                 from WRAPIT.c:9:<br>WRAPIT.c: In function ‘EX_W’:<br>WRAPIT.c:47:10: warning: implicit declaration of function ‘ex_’ [-Wimplicit-function-declaration]<br>  NGCALLF(ex,EX)(II,XX);<br>          ^<br>/Users/shea/devel/include/ncarg/c.h:31:29: note: in definition of macro ‘NGCALLF’<br> #define NGCALLF(reg,caps)   reg##_<br>                             ^~~<br>COMPILING ex.f<br>LINKING<br>END WRAPIT<br><br>=======================<br><br></div><div>However, the created .so file does work.<br><br>========================<br></div><div>%&gt; ncl ex.ncl<br></div><div><br>(0)     before i = 5<br>(0)     before x = 1.3<br>(0)     after i = 10<br>(0)     after x = -11.045<br><br>===========================================<br><br></div><div>NCL 6.4.0 does not seem to have the issue.<br><br>%&gt; ncl -V<br>6.4.0<br><br>.%&gt; WRAPIT ex.f<br> <br>WRAPIT Version: 120209<br>COMPILING ex.f<br>LINKING<br>END WRAPIT<br> <br>%&gt; ncl ex.ncl<br><br> Copyright (C) 1995-2017 - All Rights Reserved<br> University Corporation for Atmospheric Research<br> NCAR Command Language Version 6.4.0<br> The use of this software is governed by a License Agreement.<br> See <a href="http://www.ncl.ucar.edu/">http://www.ncl.ucar.edu/</a> for more details.<br><br>(0)    before i = 5<br>(0)    before x = 1.3<br>(0)    after i = 10<br>(0)    after x = -11.045<br><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 4, 2017 at 11:27 PM, <a href="mailto:wangna@mail.iap.ac.cn">wangna@mail.iap.ac.cn</a> <span dir="ltr">&lt;<a href="mailto:wangna@mail.iap.ac.cn" target="_blank">wangna@mail.iap.ac.cn</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<div><span></span>Dear all,</div><div><br></div><div>I am trying to troubleshoot WRAPIT using the simple test provided by <span style="background-color:rgba(0,0,0,0);font-size:10pt;line-height:1.5"></span><a href="https://www.ncl.ucar.edu/Document/Tools/WRAPIT.shtml" style="font-size:10pt;line-height:1.5;background-color:window" target="_blank">https://www.ncl.ucar.edu/<wbr>Document/Tools/WRAPIT.shtml</a>.</div><div>The following error occurred when I run “ WRAPIT ex.f&quot;:</div><div><br></div><div><br></div><div><span style="background-color:rgba(0,0,0,0)"><font color="#0000ff">WRAPIT Version: 120209<br>In file included from /public/<wbr>software/meteoapps/ncl/6.4.0/<wbr>include/ncarg/hlu/hlu.h:28:0,<br>                 from WRAPIT.<wbr>c:9:<br>/public/software/compiler/<wbr>intel/composer_xe_2015.2.164/<wbr>compiler/include/limits.h:36:<wbr>54: error: missing binary <wbr>operator before token &quot;(&quot;<br>     defined(__has_include_<wbr>next) &amp;&amp; __has_include_next(&lt;<wbr>limits.h&gt;)<br>                              <wbr>                        ^<br>COMPILING ex.f<br>LINKING<br>gcc: error: WRAPIT.o: No such <wbr>file or directory<br>rm: cannot remove ?.RAPIT.o?. <wbr>No such file or directory<br>END WRAPIT</font></span></div><div><br></div><div>And here&#39;s my system information</div><div><span style="background-color:rgba(0,0,0,0)"><font color="#0000ff">Linux admin 3.10.0-327.el7.<wbr>x86_64 #1 SMP Thu Nov 19 22:<wbr>10:57 UTC 2015 x86_64 x86_64 <wbr>x86_64 GNU/Linux</font></span></div><div><br></div><div>Does anyone know how to fix it?</div><div><br></div><div>Thanks </div><div>Wang Na</div><div><br></div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)"></span>
<div><br></div><hr style="width:210px;height:1px" size="1" align="left" color="#b5c4df">
<div><span><div style="margin:10px;font-size:10pt"><div style="text-align:left;font-size:15px"><span style="line-height:24px;text-align:justify"><font face="Cambria">WANG Na</font></span></div><div style="text-align:left;font-size:15px"><span style="line-height:150%;text-align:justify;background-color:window"><font face="Cambria">Institute of Atmospheric Physics</font></span></div><div style="text-align:left;font-size:15px"><span style="background-color:window;line-height:150%;text-align:justify"><font face="Cambria">Chinese Academy
of Sciences</font></span></div><div style="text-align:left;font-size:15px"><span style="background-color:window;line-height:150%;text-align:justify"><font face="Cambria">Beijing 100029, China </font></span></div><span class="HOEnZb"><font color="#888888"><div style="font-size:15px"><font face="Cambria"><u style="line-height:1.5;background-color:window"><a href="mailto:wangna@mail.iap.ac.cn" target="_blank"></a></u><a href="mailto:wangna@mail.iap.ac.cn" style="line-height:1.5;background-color:window" target="_blank">wangna@mail.iap.ac.cn</a><span style="line-height:1.5;background-color:window"> </span></font></div><div><br></div><span></span></font></span></div></span></div>
</div><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>