[scilab-Users] Run C code function in Scilab
Michaël Baudin
michael.baudin at scilab.org
Thu Jul 22 13:20:42 CEST 2010
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