<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Hi Christian,<br><br>As said by Michaël, you have to install a C compiler on your compiler. Under windows, you can use Microsoft Visual Express or lcc (both are free). Perhaps you could use another one through MinGW but I'm not familiar with this.<br><br>After that, ilib_for_link should work correctly.<br><br>Best regards,<br>Benoit<br><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">De :</span></b> "KLUGESHERZ, CHRISTIAN (CHRISTIAN)" <christian.klugesherz@alcatel-lucent.com><br><b><span style="font-weight: bold;">À :</span></b> "users@lists.scilab.org"
<users@lists.scilab.org><br><b><span style="font-weight: bold;">Envoyé le :</span></b> Jeu 22 juillet 2010, 14h 35min 39s<br><b><span style="font-weight: bold;">Objet :</span></b> RE: [scilab-Users] Run C code function in Scilab<br></font><br>Hello Michaël<br><br>Thanks for your information.<br><br>But as explained, my goal is not to create a toolbox, just a simple function written in C that I want to call with scilab.<br><br>And for the moment I don't know what kind of approach I should use<br><br>For information: when I try to test example in : "Dynamic/incremental Link " proposed by Bernard. <br><br>See: <a href="http://www.scilab.org/product/man/ilib_for_link.html" target="_blank">http://www.scilab.org/product/man/ilib_for_link.html</a><br><br><br>I got<br>haveacompiler()<br> ans =<br> <br> F <br><br>For: MinGW-Dynamic_link-Scilab, when I execute<br><br><a
href="http://forge.scilab.org/index.php/p/MinGW-toolbox/source/tree/master/" target="_blank">http://forge.scilab.org/index.php/p/MinGW-toolbox/source/tree/master/</a><br><br>-->exec builder.sce<br> <br>--><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "<a href="http://www.w3.org/TR/html4/strict.dtd" target="_blank">http://www.w3.org/TR/html4/strict.dtd</a>"><br><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "<a href="http://www.w3.org/TR/html" target="_blank">http://www.w3.org/TR/html</a><br> !--error 1 <br>Incorrect assignment.<br><br>at line 1 of exec file called by : <br>exec builder.sce<br><br>So I desperate to find a simple example, and what approach to use<br><br>Thanks in advance<br><br>Regards<br><br><br>Christian<br><br><br>-----Message d'origine-----<br>De : Michaël Baudin [mailto:<a ymailto="mailto:michael.baudin@scilab.org"
href="mailto:michael.baudin@scilab.org">michael.baudin@scilab.org</a>] <br>Envoyé : jeudi 22 juillet 2010 13:21<br>À : <a ymailto="mailto:users@lists.scilab.org" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>Objet : Re: [scilab-Users] Run C code function in Scilab<br><br>Dear Christian,<br><br>My guess is that dynamically linking against Scilab under<br>Windows might be complicated with mingw.<br><br>You may try to use Visual Express :<br><br><a href="http://wiki.scilab.org/Visual_Studio_C%2B%2B_2008_Express" target="_blank">http://wiki.scilab.org/Visual_Studio_C%2B%2B_2008_Express</a><br><br>With mingw, you might be interested by the MingGW toolbox for<br>Scilab :<br><br><a href="http://forge.scilab.org/index.php/p/MinGW-toolbox/" target="_blank">http://forge.scilab.org/index.php/p/MinGW-toolbox/</a><br><br>Executing the builder.sce then the loader is the good sequence of<br>statements.<br>Your problem is the Mingw
message : could you display the<br>content of the loader.sce file ?<br><br>Best regards,<br><br>Michaël<br><br>KLUGESHERZ, CHRISTIAN (CHRISTIAN) a écrit :<br>> Hello all, <br>> There is now a long time that I try to link a simple c code to scilab. <br>> My goal is not to create a toolbox, just a simple function written in C that I want to call with scilab. <br>> I use <br>> - Win XP <br>> - MSYS + MinGW 5.1.4 <br>> - scilab 5.2.2 <br>><br>> I tried so many thinks but it doesn't work <br>> Below my last actions.. <br>> I tried to use : <br>> - mingw-utils-0.3 --> The files has been copied to folder C:\msys\mingw <br>> - MinGW-Dynamic_link-Scilab <br>> exec builder.sce seems to be OK <br>> exec loader.sce <br>> doesn't work --> <br>> Load macros <br>> warning(_'MinGW
make not found.')); <br>> !--error 144 <br>><br>> Even there is a make file in mingw <br>><br>> But I don't know if it is the right way to try to integrate the <br>> example csum.c and csum.h that we can find in <br>> C:\Program Files\scilab-5.3.0-beta-1\contrib\toolbox_skeleton\src\c <br>><br>> Please could anybody give me the whole process to convert<br>> - csub.c <br>> - csub.h <br>> with builder_c.sce <br>> and I think also <br>> - sci_csub.c <br>> with builder_gateway_c.sce <br>><br>> And then to explain how run the c function in scilab <br>> I hope it's the right way <br>><br>> Many thanks <br>><br>> Regards <br>><br>> Christian <br>> <br><br><br>-- <br>Michaël Baudin<br>Ingénieur de développement<br><a ymailto="mailto:michael.baudin@scilab.org"
href="mailto:michael.baudin@scilab.org">michael.baudin@scilab.org</a><br>-------------------------<br>Consortium Scilab - Digiteo<br>Domaine de Voluceau - Rocquencourt<br>B.P. 105 - 78153 Le Chesnay Cedex<br>Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94<br><br><br></div></div>
</div><br>
</body></html>