Hi,<br>I'd like using ilib_for_link function with C function build_in. So I'm trying the help example bellow :<br style="font-family: trebuchet ms,sans-serif;"><font size="1"><span style="font-family: trebuchet ms,sans-serif;">f1=['int ext1c(n, a, b, c)'</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">    'int *n;     double *a, *b, *c;'</span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">    '{int k;'</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">    '  for (k = 0; k < *n; ++k) '</span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">    '      c[k] = a[k] + b[k];'</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">    '  return(0);}'];</span><br style="font-family: trebuchet ms,sans-serif;"><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">mputl(f1,'fun1.c')</span><br style="font-family: trebuchet ms,sans-serif;">
<br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">//creating the shared library (a gateway, a Makefile and a loader are </span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">//generated. </span><br style="font-family: trebuchet ms,sans-serif;"><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">ilib_for_link('ext1c','fun1.o',[],"c") </span><br style="font-family: trebuchet ms,sans-serif;">
<br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">// load the shared library </span><br style="font-family: trebuchet ms,sans-serif;"><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">exec loader.sce </span><br style="font-family: trebuchet ms,sans-serif;"><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">//using the new primitive</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">a=[1,2,3];b=[4,5,6];n=3;</span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">c=call('ext1c',n,1,'i',a,2,'d',b,3,'d','out',[1,3],4,'d');</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">if norm(c-(a+b)) > %eps then pause,end</span><br></font><br>Loading the sce file, gives me this error :<br><font size="1"><span style="font-family: trebuchet ms,sans-serif;">in  execstr instruction    called by :  </span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;"> </span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">   generate a loader file</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">   generate a Makefile: Makelib</span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">   running the makefile</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">   compilation of fun1</span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">   building shared library (be patient)</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">   /usr/bin/ld: crti.o: No such file: No such file or directory</span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">   collect2: ld returned 1 exit status</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">   make: *** [<a href="http://libext1c.la">libext1c.la</a>] Error 1</span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;"> !--error 10000 </span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">unix_s: error during ``make -f Makelib <a href="http://libext1c.la">libext1c.la</a>'' execution                 </span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">at line      56 of function unix_s called by :  </span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">line    29 of function ilib_compile called by :  </span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">line    29 of function ilib_for_link called by :  </span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">ilib_for_link('ext1c','fun1.o',[],"c")</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">line    13 of exec file called by :    </span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">exec("/media/sda1/STF_STUFF/ProjetLivre/figures/testLink.sce");</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">in  execstr instruction    called by :  </span><br style="font-family: trebuchet ms,sans-serif;"></font> <br>I believe i've tried this long time ago, and it works well.<br>
Is there anybody knowing the answer to this pb ?<br>stf<br>