<div style="color:#000; font-size: 14px;font-family: arial;"><div>Much thanks for Jonathan.<br>I know that idamax is a function in BLAS, and I had tested it.<br><br>!test.f90<br>program main<br>&nbsp;&nbsp;&nbsp; &nbsp; real*8 a(4) <br>&nbsp;&nbsp;&nbsp; &nbsp; data a /1.0D0,3.0D0,9.0D0,8.0D0/<br>&nbsp;&nbsp;&nbsp; &nbsp; print *, idamax(4,a,1)<br>&nbsp;&nbsp;&nbsp; &nbsp; end program<br>! end test.f90<br><br>gfortran test.f90 -L/lib -lopenblas<br>./a.exe<br>3<br>It runs correctly.<br><br>As for underscores, I am confused, and I have no idea how to correct it. The compilation has confused me for a long time, thanks for any one who help me overcome it.<br>I am sorry for that I cannot follow the post in the list.<br><br><pre>&gt;idamax_ is a symbol that shuold be defined by your BLAS library. Check
&gt;if your openblas is defining it or not using dependency checker or
&gt;similar (it may be that it has more or fewer underscores depending on
&gt;how openblas compilation options).

&gt;Jonathan.</pre><br></div><div><br></div><div><br></div><div><br></div></div><!-- jy5ContentSuffix --><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>