[scilab-Users] Run C code function in Scilab
KLUGESHERZ, CHRISTIAN (CHRISTIAN)
christian.klugesherz at alcatel-lucent.com
Thu Jul 22 14:35:39 CEST 2010
Hello Michaël
Thanks for your information.
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.
And for the moment I don't know what kind of approach I should use
For information: when I try to test example in : "Dynamic/incremental Link " proposed by Bernard.
See: http://www.scilab.org/product/man/ilib_for_link.html
I got
haveacompiler()
ans =
F
For: MinGW-Dynamic_link-Scilab, when I execute
http://forge.scilab.org/index.php/p/MinGW-toolbox/source/tree/master/
-->exec builder.sce
--><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html
!--error 1
Incorrect assignment.
at line 1 of exec file called by :
exec builder.sce
So I desperate to find a simple example, and what approach to use
Thanks in advance
Regards
Christian
-----Message d'origine-----
De : Michaël Baudin [mailto:michael.baudin at scilab.org]
Envoyé : jeudi 22 juillet 2010 13:21
À : users at lists.scilab.org
Objet : Re: [scilab-Users] Run C code function in Scilab
Dear Christian,
My guess is that dynamically linking against Scilab under
Windows might be complicated with mingw.
You may try to use Visual Express :
http://wiki.scilab.org/Visual_Studio_C%2B%2B_2008_Express
With mingw, you might be interested by the MingGW toolbox for
Scilab :
http://forge.scilab.org/index.php/p/MinGW-toolbox/
Executing the builder.sce then the loader is the good sequence of
statements.
Your problem is the Mingw message : could you display the
content of the loader.sce file ?
Best regards,
Michaël
KLUGESHERZ, CHRISTIAN (CHRISTIAN) a écrit :
> Hello all,
> There is now a long time that I try to link a simple c code to scilab.
> My goal is not to create a toolbox, just a simple function written in C that I want to call with scilab.
> I use
> - Win XP
> - MSYS + MinGW 5.1.4
> - scilab 5.2.2
>
> I tried so many thinks but it doesn't work
> Below my last actions..
> I tried to use :
> - mingw-utils-0.3 --> The files has been copied to folder C:\msys\mingw
> - MinGW-Dynamic_link-Scilab
> exec builder.sce seems to be OK
> exec loader.sce
> doesn't work -->
> Load macros
> warning(_'MinGW make not found.'));
> !--error 144
>
> Even there is a make file in mingw
>
> But I don't know if it is the right way to try to integrate the
> example csum.c and csum.h that we can find in
> C:\Program Files\scilab-5.3.0-beta-1\contrib\toolbox_skeleton\src\c
>
> Please could anybody give me the whole process to convert
> - csub.c
> - csub.h
> with builder_c.sce
> and I think also
> - sci_csub.c
> with builder_gateway_c.sce
>
> And then to explain how run the c function in scilab
> I hope it's the right way
>
> Many thanks
>
> Regards
>
> Christian
>
--
Michaël Baudin
Ingénieur de développement
michael.baudin at scilab.org
-------------------------
Consortium Scilab - Digiteo
Domaine de Voluceau - Rocquencourt
B.P. 105 - 78153 Le Chesnay Cedex
Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94
More information about the users
mailing list