Hi Sylvestre,<br><br><br><div class="gmail_quote">On Fri, Jul 3, 2009 at 7:07 AM, Sylvestre Ledru <span dir="ltr"><<a href="mailto:sylvestre.ledru@scilab.org" target="_blank">sylvestre.ledru@scilab.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Guilherme,<br>
<br>
First, I don't know if you are aware of it  but you will find a<br>
toolbox_skeleton in Scilab installation (or source tree).<br>
This is showing how it is done.</blockquote><div><br>I didn't know that, thanks. I tried to compile it (using make) and then use it from Scilab. In the case I tried to call 'scilab_sum(4, 3)', which is the function define at 'scilab_sum.sci', but this function is not recognized.<br>
<br>What am I missing? I'm not sure on how to do that.<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Le jeudi 02 juillet 2009 à 23:46 -0300, Guilherme Kunigami a écrit :<br>
<div>> Hi all,<br>
><br>
> I was following this tutorial:<br>
> <a href="http://www.scilab.org/product/index_product.php?page=toolbox_guide" target="_blank">http://www.scilab.org/product/index_product.php?page=toolbox_guide</a>  to<br>
> develop a sample toolbox. I'm not sure how to proceed to test this<br>
> module, calling functions at /macro/ from Scilab for example. Do I<br>
> have to write my own Makefile?<br>
</div>If you are dealing with macros, you don't to write a makefile.<br>
<br>
If you are dealing with native code (C, fortran, C++...), you can do the<br>
work thanks to the ilib_* functions.<br>
Thee functions are creating Makefiles, detection compilers, building and<br>
loading native code.<br>
<br>
You will find some here:<br>
<a href="http://gitweb.scilab.org/?p=scilab;a=tree;f=scilab/modules/dynamic_link/tests/unit_tests;h=c56fa2616ece7a8a2c24c3abb0aaf7ed4e699814;hb=HEAD" target="_blank">http://gitweb.scilab.org/?p=scilab;a=tree;f=scilab/modules/dynamic_link/tests/unit_tests;h=c56fa2616ece7a8a2c24c3abb0aaf7ed4e699814;hb=HEAD</a><br>


ilib_for_link*.tst<br>
ilib_build*.tst<br>
<br>
These function calls should be placed in the builder.sce.</blockquote><div><br>I'm not sure if I understood what was said above: If I put these functions in builder.sce, I just need to execute the script to generate the Makefile and other stuff?<br>
<br>Thanks,<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Don't hesitate if you have any other questions.<br>
<font color="#888888"><br>
<br>
<br>
Sylvestre<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Guilherme Kunigami<br>