Hi all,<br><br>I am currently trying to use ilib_for_link to use external fortran subroutine into scilab. My system: Ubuntu 12.04 64bit, Scilab 5.4.0 64bit compiled version.<br>GFORTRAN is installed in my computer, and the command<br>

<br>gfortran -c -fPIC fsoma.f90<br><br>works perfectly.<br><br><br>Now into scilab, here is my code:<br><br>link_name=['fsoma'];<br>files=['tipos.mod','fsoma.f90']; //tipos.mod is a module for variable kind values<br>

libs=[];<br>flag  = "f";<br><br>ilib_for_link(link_name,files,libs,flag,'','floader.sce'); <br><br>This code produces:<br><br>ilib_for_link(link_name,files,libs,flag,'','floader.sce');<br>

   Generate a loader file<br>   Generate a Makefile<br>   ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR<br>   ilib_gen_Make: Copy tipos.mod to TMPDIR<br>   ilib_gen_Make: Copy fsoma.f90 to TMPDIR<br>

   ilib_gen_Make: Modification of the Makefile in TMPDIR.<br>   Running the Makefile<br> !--error 10000 <br>ilib_compile: An error occurred during the compilation:<br>libtool: unrecognized option `-c'<br>Try `libtool --help' for more information.<br>

make: *** [fsoma.lo] Error 1<br>ilib_compile: The command was:<br>make  CFLAGS=" -D__SCILAB_TOOLBOX__ -I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ " CXXFLAGS=" -D__SCILAB_TOOLBOX__ -I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ " FFLAGS="-I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ "<br>

at line     129 of function ilib_compile called by :  <br>at line      94 of function ilib_for_link called by :  <br>,flag,'','floader.sce')<br><br clear="all">Anyone can help me please?<br><br>Best regards,<br>

<br>-- <br>Eduardo Torrecillas<br>AER-09