[scilab-Users] Re: Link computational function written in Scilab language

Mike Page Mike at Page-One.Waitrose.com
Wed Jul 11 10:29:15 CEST 2012


Hi,

If you want to call Scilab functions from within C code, you can use
SendScilabJob.  This is described in the help system.  Don't forget to
include the necessary files in your C files:

#include "call_scilab.h"
#include "api_scilab.h"

And also add LibScilab.lib (assuming Windows) to your linker.


If you want to do it the other way round (call a module written in C from
within Scilab) you need to build the C code into a DLL (again Windows) and
link that into Scilab using:

link ("Path\filename.dll", functions, "c");

where functions is a string vector of entry point names.  For more help see
"link" in the Scilab help.

There are other ways to do this - see help for more info.

HTH,
Mike.



-----Original Message-----
From: hehiha [mailto:dungnguyenbk at gmail.com]
Sent: 11 July 2012 05:35
To: users at lists.scilab.org
Subject: [scilab-Users] Re: Link computational function written in
Scilab language


I implement my module.
My computation written by c language.
In some case. c computation will call interface written by scilab.
Could you tell me how to call interface written by scilab form c
computation.

--
View this message in context:
http://mailinglists.scilab.org/Link-computational-function-written-in-Scilab
-language-tp3697371p4024554.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at
Nabble.com.

--
To unsubscribe from this mailing-list, please send an empty mail to
users-unsubscribe at lists.scilab.org
To check the archives of this mailing list, see
http://mailinglists.scilab.org/



-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2195 / Virus Database: 2437/5123 - Release Date: 07/10/12




More information about the users mailing list