<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
i installed Linux(32Bit) in a virtual mashine. Then installed scilab
from command line. Following folder struckture comes out:<br>
/usr/lib/scillab<br>
/usr/include/scilab<br>
/usr/share/scilab<br>
<br>
then i created a short c file test.c :<br>
#include "stack-c.h"<br>
#include "call_scilab.h" /* Provide functions to call Scilab engine
*/<br>
int main(void)<br>
{<br>
if ( StartScilab(getenv("SCI"),NULL,NULL) == FALSE ) {<br>
fprintf(stderr,"Error while calling StartScilab\n"); return -1;<br>
}<br>
SendScilabJob("myMatrix=['sample','for the help']"); return 0;<br>
}<br>
<br>
Set up:<br>
export LD_LIBRARY_PATH=/usr/lib/scilab:$LD_LIBRARY_PATH<br>
export SCI=/usr/share/scilab<br>
<br>
Start:<br>
gcc -o myExample -lscilab -L/usr/lib/scilab -I/usr/include/scilab
test.c<br>
(alternative see makefile )<br>
<b><big><big>Error:</big></big></b><br>
gcc -o myExample -lscilab -L/usr/lib/scilab -I/usr/include/scilab
test.c<br>
test.c: In function \u2018main\u2019:<br>
test.c:38:2: warning: passing argument 3 of \u2018StartScilab\u2019
makes integer from pointer without a cast [enabled by default]<br>
if ( StartScilab(getenv("SCI"),NULL,NULL) == FALSE )<br>
^<br>
In file included from test.c:33:0:<br>
/usr/include/scilab/call_scilab.h:43:10: note: expected
\u2018int\u2019 but argument is of type \u2018void *\u2019<br>
BOOL StartScilab(char *SCIpath, char *ScilabStartup, int
Stacksize);<br>
^<br>
/tmp/ccqXRomB.o: In function `main':<br>
test.c:(.text+0x48): undefined reference to `StartScilab'<br>
test.c:(.text+0x7a): undefined reference to `SendScilabJob'<br>
collect2: error: ld returned 1 exit status<br>
<br>
-- tested on different Linux systems and with the Download version
scilab-5.5.0<br>
<br>
has anyone tested this?<br>
Mark<br>
<br>
<br>
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
<tr>
<td style='border:none;padding:0px 15px 0px 8px'>
<a href="http://www.avast.com/">
<img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" />
</a>
</td>
<td>
<p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
Diese E-Mail ist frei von Viren und Malware, denn der <a href="http://www.avast.com/">avast! Antivirus</a> Schutz ist aktiv.
</p>
</td>
</tr>
</table>
<br />
</body>
</html>