[Scilab-users] Link Error creating own c-Block for XCos

x_Mark mark-lautermann at live.de
Thu Mar 27 18:01:45 CET 2014



Hi,

I installed

*Win 8 64Bit / Scilab 64Bit / gcc-4.8.2-64.exe / Atoms - MinGW toolbox
0.9.3.0
*
then i created a basic c File 


//test.c
#include <C:\Program
Files\scilab-5.4.1\modules\scicos_blocks\includes\scicos_block4.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h> 

void lim_int(scicos_block *blk, int flag)
{ 
;
}



tried to link it with

*   ilib_for_link('test','test.c',[],'c');*

i get this output:



-->ilib_for_link('test','test.c',[],'c');
   erzeuge eine Laderdatei
   erzeuge ein Makefile
   Führe Makefile aus
   Kompilation von test.obj
   erzeuge eine gemeisame Bibliothek (habe Sie Geduld)
 
!------------- Link files --------------                                   
!
!                                                                          
!
!x86_64-w64-mingw32-gcc.exe --shared test.o 
-L"c:\users\mark\gcc\x86_64-w64!
!     -mingw32\lib"
-LC:\Users\Mark\AppData\Roaming\Scilab\scilab-5.4.1\ming!
!     wlib_x64 -lstdc++ -lgfortran -lMALLOC -lblasplus -lf2c -llapack
-lcore!
!      -lcore_f -lintersci -loutput_stream -ldynamic_link -linteger
-loptimi!
!     zation_f -ljvm -lscilocalization -lintl -llinpack_f -lcall_scilab
-lti!
!     me -lapi_scilab -lscilab_windows -lscicos -lscicos_blocks
-lscicos_blo!
!     cks_f -lscicos_f -o libtest.dll  -Wl,--out-implib=libtest.a
-Wl,--expo!
!     rt-all-symbols -Wl,--enable-auto-import -Wl	                         
!
!                                                                          
!
!x86_64-w64-mingw32-gcc.exe: error: unrecognized command line option '-Wl' 
!
!                                                                          
!
!make: *** [libtest.dll] Error 1                                           
!
 !--error 10000 
ilib_compile: Fehler während der Ausführung Makelib.
at line      25 of function dlwCompile called by :  
at line      51 of function ilib_compile called by :  
at line      94 of function ilib_for_link called by :  
ilib_for_link('test','test.c',[],'c');




These files are created in the dir:
*test.o / Makelib / loader.sce*

How can i solve this problem? Same Problem on Win7 32Bit 
Creating in Ubuntu 12.04 is no problem :-( but i need Win


own_c_block.zip
<http://mailinglists.scilab.org/file/n4030173/own_c_block.zip>  









--
View this message in context: http://mailinglists.scilab.org/Link-Error-creating-own-c-Block-for-XCos-tp4030173.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list