1
ilib_for_link Scilab Group Scilab Function ilib_for_link
3
ilib_for_link - utility for shared library management with link
6
libn=ilib_for_link(names,files,libs,flag,makename,loadername])
8
names : a string matrix giving the entry names which are to be
11
files : string matrix giving objects files needed for shared library
14
libs : string matrix giving extra libraries needed for shred
17
flag : a string flag ("c" or "f") for C or Fortran entry points.
19
makename : character string. The pathname of the Makefile file without
20
extension (default value Makelib).
22
loadername : character string. The pathname of the loader file (default
25
libn : character string. The path of the really generated shared
29
This tool is used to create shared libraries and to generate a loader
30
file which can be used to dynamically load the shared library into
31
Scilab with the link function. New entry points given by names are then
32
accessible through the call function or with non linear tools ode,
33
optim,... Many examples are provided in examples/link-examples-so
38
f1=['int ext1c(n, a, b, c)'
39
'int *n; double *a, *b, *c;'
41
' for (k = 0; k < *n; ++k) '
42
' c[k] = a[k] + b[k];'
47
//creating the shared library (a gateway, a Makefile and a loader are
50
ilib_for_link('ext1c','fun1.o',[],"c")
52
// load the shared library
56
//using the new primitive
57
a=[1,2,3];b=[4,5,6];n=3;
58
c=call('ext1c',n,1,'i',a,2,'d',b,3,'d','out',[1,3],4,'d');
59
if norm(c-(a+b)) > %eps then pause,end
62
addinter, link, ilib_compile, ilib_gen_Make, ilib_gen_gateway,
63
ilib_gen_loader, ilib_for_link