4
//[1] call intersci with Makefile
8
V=G_make('ex04fi.c','ex04fi.c');
10
//[2] run the builder generated by intersci.
12
// Since files and libs were nor transmited
14
// to intersci we give them here
16
files = ['ex04fi.o';'ex04f.o'];
20
exec ex04fi_builder.sce
22
// generated with intersci
24
ilib_name = 'libex04fi' // interface library name
30
table =["contrb","intscontrb"];
32
ilib_build(ilib_name,table,files,libs);
33
generate a gateway file
34
generate a loader file
35
generate a Makefile: Makelib
40
//[3] run the loader to load the interface
42
// Note that the file loader.sce
44
// is changed each time you run a demo
46
// if several0.desc are present in a directory
50
// generated by builder.sce: Please do not edit this file
52
// ------------------------------------------------------
54
libex04fi_path=get_file_path('loader.sce');
59
addinter(libex04fi_path+'/libex04fi.so','libex04fi',functions);
60
Loading shared executable0./libex04fi.so
73
//[4] test the loaded function
76
sys=ssrand(2,2,3,list('co',1));
80
if n <> 1 then bugmes();quit;end