<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>I'm using Scilab 5.40 beta 3 under Mac OS X 10.8 (Mountain Lion) and I'm getting an error when I try to use Dynamic Link to call Fortran Code (using gfortran compiler). Follow my test, note that it was OK on a computer running Linux and Scilab 5.33.</div><div><br></div><div>FORTRAN CODE (matriz1.f90)</div><div><br></div><div><div>subroutine matriz1(x,y,m)</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>real (kind=8) :: x,y,m(2,3)</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>m(1,1)=2</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>m(1,2)=1+x</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>m(1,3)=-3*y</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>m(2,1)=x*x</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>m(2,2)=-2</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>m(2,3)=y+2</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>return</div><div>end</div></div><div><br></div><div>Compiler instruction: gfortran -shared -o matriz1.so matriz1.f90</div><div><br></div><div>SCILAB COMMAND</div><div><br></div><div>ilib_for_link('matriz1','matriz1.f90',[],"f")</div><div><br></div><div>RESULT:</div><div><br></div><div><div>Gerar um arquivo de carga</div><div>   Gerar um Makefile</div><div>   ilib_gen_Make: Copia os arquivos de compilação (Makefile*, libtool...) para TMPDIR</div><div>   ilib_gen_Make: Copia matriz1.f90 para TMPDIR</div><div>   ilib_gen_Make: Modificação do Makefile em TMPDIR.</div><div>   Executando o Makefile</div><div> !--error 10000 </div><div>ilib_compile: Ocorreu um erro durante a compilação:</div><div>libtool: unrecognized option `-c'</div><div>Try `libtool --help' for more information.</div><div>make: *** [matriz1.lo] Error 1</div><div>ilib_compile: O comando foi:</div><div>make  CFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " CXXFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " FFLAGS="-I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ "</div><div>at line     129 of function ilib_compile called by :  </div><div>at line      94 of function ilib_for_link called by :  </div><div>ilib_for_link('matriz1','matriz1.f90',[],"f")</div></div><div><br></div><div>Does anyone have an idea?</div><div><br></div><div>Thanks!</div><br><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">_____________<br>Cássio Pazinatto</span>
</div>
<br></body></html>