[Scilab-users] Fortran Compilation (ilib_for_link)

Eduardo Torrecillas eduardo.torrecillas at gmail.com
Sat Feb 9 13:48:05 CET 2013


Hi all,

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.
GFORTRAN is installed in my computer, and the command

gfortran -c -fPIC fsoma.f90

works perfectly.


Now into scilab, here is my code:

link_name=['fsoma'];
files=['tipos.mod','fsoma.f90']; //tipos.mod is a module for variable kind
values
libs=[];
flag  = "f";

ilib_for_link(link_name,files,libs,flag,'','floader.sce');

This code produces:

ilib_for_link(link_name,files,libs,flag,'','floader.sce');
   Generate a loader file
   Generate a Makefile
   ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR
   ilib_gen_Make: Copy tipos.mod to TMPDIR
   ilib_gen_Make: Copy fsoma.f90 to TMPDIR
   ilib_gen_Make: Modification of the Makefile in TMPDIR.
   Running the Makefile
 !--error 10000
ilib_compile: An error occurred during the compilation:
libtool: unrecognized option `-c'
Try `libtool --help' for more information.
make: *** [fsoma.lo] Error 1
ilib_compile: The command was:
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/
"
at line     129 of function ilib_compile called by :
at line      94 of function ilib_for_link called by :
,flag,'','floader.sce')

Anyone can help me please?

Best regards,

-- 
Eduardo Torrecillas
AER-09
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20130209/c6158eb2/attachment.htm>


More information about the users mailing list