<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>I want to create a C program that executes a function inside Scilab.<br><br>I use Scilab 5.1.1 in Kubuntu, gcc 4.3.2<br><br>I create a simple function in C to try this.  The name's program is 'dados_para_scilab.c' :<br><br>double funcao(x)<br>double *x;<br>{<br>  double result = (*x)+1;<br>}//end function<br><br>Then, I compile:<br><br>gcc -o dados_para_scilab.o -c dados_para_scilab.c<br><br>And I put the 'dados_para_scilab.o' file inside the work directory that I defined for Scilab (with 'chdir' command).<br><br>Then, inside Scilab:<br><br>--> link('dados_para_scilab.o','funcao','c')<br><br>But the following message is showed:<br><br>Link failed for dynamic library 'dados_para_scilab.o'<br>...only: ET_DYN e ET_EXEC can be loaded.<br>link: The shared
 archive was not loaded: (null)<br><br>What am I doing wrong? Someone could help me? It would be a great value to put some C code and the steps to make this working.<br><br>Thanks in advance,<br><br>Lucio<br>...........</td></tr></table><br>


      <hr size=1>Veja quais são os assuntos do momento no Yahoo! + Buscados: <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/">Top 10</a> - <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/celebridades/">Celebridades</a> - <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/m%C3%BAsica/">Música</a> - <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/esportes/">Esportes</a>