[Scilab-users] c link (mingw)

classic Classic list List threaded Threaded
12 messages Options
kjubo kjubo
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] c link (mingw)

Dear all,

I am trying to make a c code.
I instaled mingw (from equation.com) and MinGw toolbox from ATOMS.

When I try to use a example code from call help page, I get following error:
(full scilab console print)


    Generate a loader file
   Generate a Makefile
   Running the Makefile
   Compilation of fooc.obj
   Building shared library (be patient)

------------- Compile file fooc.c --------------                                                                
!
                                                                                                                 
!
x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER
-I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes"!
 -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/SCILAB~1.2/libs/intl"
-I"C:/NONINS~1/SCILAB~1.2/modules/core/i!
ncludes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes"
-I"C:/NONINS~1/SCILAB~1.2/modules/call_scilab/incl!
udes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes"
-I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I!
"C:/NONINS~1/SCILAB~1.2/modules/localization/includes"
-I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I!
"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes"
-I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" -I"C:/NONINS~1/S!
CILAB~1.2/modules/windows_tools/includes"
-I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILA!
B~1.2/modules/ast/includes/ast"
-I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/exps"
-I"C:/NONINS~1/SCILAB~1.2/mod!
ules/ast/includes/operations"
-I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse"
-I"C:/NONINS~1/SCILAB~1.2/modu!
les/ast/includes/symbol"
-I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env"
-I"C:/NONINS~1/SCILAB~1.2/modu!
les/ast/includes/types"
-I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis"
-I"C:/NONINS~1/SCILAB~1.2/modules!
/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64
-D__SCILAB_TOOLBOX__  -DNDEBUG  fooc.c !
                                                                                                                 
!
------------- Link files --------------                                                                          
!
                                                                                                                 
!
x86_64-w64-mingw32-g++.exe --shared fooc.o -std=c++11 -L"c:\program
files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\j!
kopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus
-llibf2c -lcore -lcore_f -llapack -lo!
utput_stream -ldynamic_link -linteger -loptimization_f -llibjvm
-lscilocalization -llinpack_f -lcall_scilab -ltime!
 -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole
-lscilab_windows -llibmex  -o libfooc.!
dll  -Wl,--out-implib=libfooc.a -Wl,--export-all-symbols
-Wl,--enable-auto-import                                 !
                                                                                                                 
!
C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a:
file not recognized: File format not!
 recognized                                                                                                      
!
                                                                                                                 
!
collect2.exe: error: ld returned 1 exit status                                                                  
!
                                                                                                                 
!
Makelib:127: recipe for target 'libfooc.dll' failed                                                              
!
                                                                                                                 
!
make: *** [libfooc.dll] Error 1                                                                                  
!
at line    25 of function dlwCompile    (
C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci
line 34 )
at line    70 of function ilib_compile  (
C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line
86 )
at line   104 of function ilib_for_link (
C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_for_link.sci
line 118 )
at line    18 of executed file C:\Users\XXX\Documents\SciLab\c experiment\z
helpu\test_help_call.sce

ilib_compile: Error while executing Makelib


Can anybody help, how to make it works?
(SciLab 6.0.2 on Win 7 PRO, 64 bit)

thanks!

BR
JK



--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
mottelet mottelet
Reply | Threaded
Open this post in threaded view
|

Re: c link (mingw)

Hello

Which version of gcc did you download from equation.com ?

S.

> Le 25 sept. 2019 à 21:01, kjubo <[hidden email]> a écrit :
>
> Dear all,
>
> I am trying to make a c code.
> I instaled mingw (from equation.com) and MinGw toolbox from ATOMS.
>
> When I try to use a example code from call help page, I get following error:
> (full scilab console print)
>
>
>    Generate a loader file
>   Generate a Makefile
>   Running the Makefile
>   Compilation of fooc.obj
>   Building shared library (be patient)
>
> ------------- Compile file fooc.c --------------                                                                
> !
>
> !
> x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER
> -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes"!
> -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/SCILAB~1.2/libs/intl"
> -I"C:/NONINS~1/SCILAB~1.2/modules/core/i!
> ncludes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/call_scilab/incl!
> udes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/localization/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" -I"C:/NONINS~1/S!
> CILAB~1.2/modules/windows_tools/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILA!
> B~1.2/modules/ast/includes/ast"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/exps"
> -I"C:/NONINS~1/SCILAB~1.2/mod!
> ules/ast/includes/operations"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/symbol"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/types"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis"
> -I"C:/NONINS~1/SCILAB~1.2/modules!
> /string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64
> -D__SCILAB_TOOLBOX__  -DNDEBUG  fooc.c !
>
> !
> ------------- Link files --------------                                                                          
> !
>
> !
> x86_64-w64-mingw32-g++.exe --shared fooc.o -std=c++11 -L"c:\program
> files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\j!
> kopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus
> -llibf2c -lcore -lcore_f -llapack -lo!
> utput_stream -ldynamic_link -linteger -loptimization_f -llibjvm
> -lscilocalization -llinpack_f -lcall_scilab -ltime!
> -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole
> -lscilab_windows -llibmex  -o libfooc.!
> dll  -Wl,--out-implib=libfooc.a -Wl,--export-all-symbols
> -Wl,--enable-auto-import                                 !
>
> !
> C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a:
> file not recognized: File format not!
> recognized                                                                                                      
> !
>
> !
> collect2.exe: error: ld returned 1 exit status                                                                  
> !
>
> !
> Makelib:127: recipe for target 'libfooc.dll' failed                                                              
> !
>
> !
> make: *** [libfooc.dll] Error 1                                                                                  
> !
> at line    25 of function dlwCompile    (
> C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci
> line 34 )
> at line    70 of function ilib_compile  (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line
> 86 )
> at line   104 of function ilib_for_link (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_for_link.sci
> line 118 )
> at line    18 of executed file C:\Users\XXX\Documents\SciLab\c experiment\z
> helpu\test_help_call.sce
>
> ilib_compile: Error while executing Makelib
>
>
> Can anybody help, how to make it works?
> (SciLab 6.0.2 on Win 7 PRO, 64 bit)
>
> thanks!
>
> BR
> JK
>
>
>
> --
> Sent from: https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
> _______________________________________________
> users mailing list
> [hidden email]
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
mottelet mottelet
Reply | Threaded
Open this post in threaded view
|

Re: c link (mingw)

With officially supported version 6.2.0 (download link on the atoms page of mingw toolbox), under Windows 7, I run without any problem all examples on ilib_build help page.

S.

Quoting Stéphane Mottelet <[hidden email]>:

Hello

Which version of gcc did you download from equation.com ?

S.

Le 25 sept. 2019 à 21:01, kjubo <[hidden email]> a écrit :

Dear all,

I am trying to make a c code.
I instaled mingw (from equation.com) and MinGw toolbox from ATOMS.

When I try to use a example code from call help page, I get following error:
(full scilab console print)


   Generate a loader file
  Generate a Makefile
  Running the Makefile
  Compilation of fooc.obj
  Building shared library (be patient)

------------- Compile file fooc.c --------------
!

!
x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER
-I"<a href="C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" target="_blank">C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes"!
-I"<a href="C:/NONINS~1/SCILAB~1.2/libs/f2c" target="_blank">C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"<a href="C:/NONINS~1/SCILAB~1.2/libs/intl" target="_blank">C:/NONINS~1/SCILAB~1.2/libs/intl"
-I"<a href="C:/NONINS~1/SCILAB~1.2/modules/core/i" target="_blank">C:/NONINS~1/SCILAB~1.2/modules/core/i!
ncludes" -I"<a href="C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" target="_blank">C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes"
-I"<a href="C:/NONINS~1/SCILAB~1.2/modules/call_scilab/incl" target="_blank">C:/NONINS~1/SCILAB~1.2/modules/call_scilab/incl!
udes" -I"<a href="C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" target="_blank">C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes"
-I"<a href="C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" target="_blank">C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I!
"<a href="C:/NONINS~1/SCILAB~1.2/modules/localization/includes" target="_blank">C:/NONINS~1/SCILAB~1.2/modules/localization/includes"
-I"<a href="C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" target="_blank">C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I!
"<a href="C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" target="_blank">C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes"
-I"<a href="C:/NONINS~1/SCILAB~1.2/modules/time/includes" target="_blank">C:/NONINS~1/SCILAB~1.2/modules/time/includes" -I"<a href="C:/NONINS~1/S" target="_blank">C:/NONINS~1/S!
CILAB~1.2/modules/windows_tools/includes"
-I"<a href="C:/NONINS~1/SCILAB~1.2/modules/threads/includes" target="_blank">C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"<a href="C:/NONINS~1/SCILA" target="_blank">C:/NONINS~1/SCILA!
B~1.2/modules/ast/includes/ast"
-I"<a href="C:/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" target="_blank">C:/NONINS~1/SCILAB~1.2/modules/ast/includes/exps"
-I"<a href="C:/NONINS~1/SCILAB~1.2/mod" target="_blank">C:/NONINS~1/SCILAB~1.2/mod!
ules/ast/includes/operations"
-I"<a href="C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" target="_blank">C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse"
-I"<a href="C:/NONINS~1/SCILAB~1.2/modu" target="_blank">C:/NONINS~1/SCILAB~1.2/modu!
les/ast/includes/symbol"
-I"<a href="C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" target="_blank">C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env"
-I"<a href="C:/NONINS~1/SCILAB~1.2/modu" target="_blank">C:/NONINS~1/SCILAB~1.2/modu!
les/ast/includes/types"
-I"<a href="C:/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" target="_blank">C:/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis"
-I"<a href="C:/NONINS~1/SCILAB~1.2/modules" target="_blank">C:/NONINS~1/SCILAB~1.2/modules!
/string/includes" -I"<a href="C:/NONINS~1/SCILAB~1.2/modules/console/includes" target="_blank">C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64
-D__SCILAB_TOOLBOX__  -DNDEBUG  fooc.c !

!
------------- Link files --------------
!

!
x86_64-w64-mingw32-g++.exe --shared fooc.o -std=c++11 -L"c:\program
files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\j!
kopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus
-llibf2c -lcore -lcore_f -llapack -lo!
utput_stream -ldynamic_link -linteger -loptimization_f -llibjvm
-lscilocalization -llinpack_f -lcall_scilab -ltime!
-lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole
-lscilab_windows -llibmex  -o libfooc.!
dll  -Wl,--out-implib=libfooc.a -Wl,--export-all-symbols
-Wl,--enable-auto-import                                 !

!
C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a:
file not recognized: File format not!
recognized
!

!
collect2.exe: error: ld returned 1 exit status
!

!
Makelib:127: recipe for target 'libfooc.dll' failed
!

!
make: *** [libfooc.dll] Error 1
!
at line    25 of function dlwCompile    (
C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci
line 34 )
at line    70 of function ilib_compile  (
C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line
86 )
at line   104 of function ilib_for_link (
C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_for_link.sci
line 118 )
at line    18 of executed file C:\Users\XXX\Documents\SciLab\c experiment\z
helpu\test_help_call.sce

ilib_compile: Error while executing Makelib


Can anybody help, how to make it works?
(SciLab 6.0.2 on Win 7 PRO, 64 bit)

thanks!

BR
JK



--
Sent from: https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
[hidden email]
https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email].<a href="orghttps://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users" target="_blank">orghttps://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users




_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Perrichon Pierre Perrichon Pierre
Reply | Threaded
Open this post in threaded view
|

Re: c link (mingw)

In reply to this post by mottelet
Dear,
Scilab 5.5.2 and MingW  4.6.3 are very ok with w64
4.6.3 is on atoms proposals.
regards



Before printing, think about ENVIRONMENTAL responsabity


-----Message d'origine-----
De : users <[hidden email]> De la part de Stéphane Mottelet
Envoyé : mercredi 25 septembre 2019 21:56
À : Users mailing list for Scilab <[hidden email]>
Objet : Re: [Scilab-users] c link (mingw)

Hello

Which version of gcc did you download from equation.com ?

S.

> Le 25 sept. 2019 à 21:01, kjubo <[hidden email]> a écrit :
>
> Dear all,
>
> I am trying to make a c code.
> I instaled mingw (from equation.com) and MinGw toolbox from ATOMS.
>
> When I try to use a example code from call help page, I get following error:
> (full scilab console print)
>
>
>    Generate a loader file
>   Generate a Makefile
>   Running the Makefile
>   Compilation of fooc.obj
>   Building shared library (be patient)
>
> ------------- Compile file fooc.c --------------                                                                
> !
>
> !
> x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER
> -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes"!
> -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/SCILAB~1.2/libs/intl"
> -I"C:/NONINS~1/SCILAB~1.2/modules/core/i!
> ncludes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/call_scilab/incl!
> udes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/localization/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" -I"C:/NONINS~1/S!
> CILAB~1.2/modules/windows_tools/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILA!
> B~1.2/modules/ast/includes/ast"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/exps"
> -I"C:/NONINS~1/SCILAB~1.2/mod!
> ules/ast/includes/operations"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/symbol"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/types"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis"
> -I"C:/NONINS~1/SCILAB~1.2/modules!
> /string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes"
> -m64 -D__SCILAB_TOOLBOX__  -DNDEBUG  fooc.c !
>
> !
> ------------- Link files --------------                                                                          
> !
>
> !
> x86_64-w64-mingw32-g++.exe --shared fooc.o -std=c++11 -L"c:\program
> files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\j!
> kopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64 -lgfortran
> -lblasplus -llibf2c -lcore -lcore_f -llapack -lo!
> utput_stream -ldynamic_link -linteger -loptimization_f -llibjvm
> -lscilocalization -llinpack_f -lcall_scilab -ltime!
> -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads
> -lsciconsole -lscilab_windows -llibmex  -o libfooc.!
> dll  -Wl,--out-implib=libfooc.a -Wl,--export-all-symbols
> -Wl,--enable-auto-import                                 !
>
> !
> C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a:
> file not recognized: File format not!
> recognized                                                                                                      
> !
>
> !
> collect2.exe: error: ld returned 1 exit status                                                                  
> !
>
> !
> Makelib:127: recipe for target 'libfooc.dll' failed                                                              
> !
>
> !
> make: *** [libfooc.dll] Error 1                                                                                  
> !
> at line    25 of function dlwCompile    (
> C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile
> .sci
> line 34 )
> at line    70 of function ilib_compile  (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sc
> i line
> 86 )
> at line   104 of function ilib_for_link (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_for_link.s
> ci
> line 118 )
> at line    18 of executed file C:\Users\XXX\Documents\SciLab\c experiment\z
> helpu\test_help_call.sce
>
> ilib_compile: Error while executing Makelib
>
>
> Can anybody help, how to make it works?
> (SciLab 6.0.2 on Win 7 PRO, 64 bit)
>
> thanks!
>
> BR
> JK
>
>
>
> --
> Sent from:
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/maili
> nglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
> _______________________________________________
> users mailing list
> [hidden email]
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists
> .scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
kjubo kjubo
Reply | Threaded
Open this post in threaded view
|

Re: c link (mingw)

In reply to this post by mottelet
Hello,

I downloaded and instaled gcc-6.2.0-64.exe

BR

JK


st 25. 9. 2019 o 21:56 Stéphane Mottelet <[hidden email]> napísal(a):
Hello

Which version of gcc did you download from equation.com ?

S.

> Le 25 sept. 2019 à 21:01, kjubo <[hidden email]> a écrit :
>
> Dear all,
>
> I am trying to make a c code.
> I instaled mingw (from equation.com) and MinGw toolbox from ATOMS.
>
> When I try to use a example code from call help page, I get following error:
> (full scilab console print)
>
>
>    Generate a loader file
>   Generate a Makefile
>   Running the Makefile
>   Compilation of fooc.obj
>   Building shared library (be patient)
>
> ------------- Compile file fooc.c --------------                                                                 
> !
>
> !
> x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER
> -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes"!
> -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/SCILAB~1.2/libs/intl"
> -I"C:/NONINS~1/SCILAB~1.2/modules/core/i!
> ncludes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/call_scilab/incl!
> udes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/localization/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" -I"C:/NONINS~1/S!
> CILAB~1.2/modules/windows_tools/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILA!
> B~1.2/modules/ast/includes/ast"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/exps"
> -I"C:/NONINS~1/SCILAB~1.2/mod!
> ules/ast/includes/operations"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/symbol"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/types"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis"
> -I"C:/NONINS~1/SCILAB~1.2/modules!
> /string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64
> -D__SCILAB_TOOLBOX__  -DNDEBUG  fooc.c !
>
> !
> ------------- Link files --------------                                                                         
> !
>
> !
> x86_64-w64-mingw32-g++.exe --shared fooc.o -std=c++11 -L"c:\program
> files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\j!
> kopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus
> -llibf2c -lcore -lcore_f -llapack -lo!
> utput_stream -ldynamic_link -linteger -loptimization_f -llibjvm
> -lscilocalization -llinpack_f -lcall_scilab -ltime!
> -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole
> -lscilab_windows -llibmex  -o libfooc.!
> dll  -Wl,--out-implib=libfooc.a -Wl,--export-all-symbols
> -Wl,--enable-auto-import                                 !
>
> !
> C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a:
> file not recognized: File format not!
> recognized                                                                                                     
> !
>
> !
> collect2.exe: error: ld returned 1 exit status                                                                   
> !
>
> !
> Makelib:127: recipe for target 'libfooc.dll' failed                                                             
> !
>
> !
> make: *** [libfooc.dll] Error 1                                                                                 
> !
> at line    25 of function dlwCompile    (
> C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci
> line 34 )
> at line    70 of function ilib_compile  (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line
> 86 )
> at line   104 of function ilib_for_link (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_for_link.sci
> line 118 )
> at line    18 of executed file C:\Users\XXX\Documents\SciLab\c experiment\z
> helpu\test_help_call.sce
>
> ilib_compile: Error while executing Makelib
>
>
> Can anybody help, how to make it works?
> (SciLab 6.0.2 on Win 7 PRO, 64 bit)
>
> thanks!
>
> BR
> JK
>
>
>
> --
> Sent from: https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
> _______________________________________________
> users mailing list
> [hidden email]
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
mottelet mottelet
Reply | Threaded
Open this post in threaded view
|

Re: c link (mingw)

Which example of the doc did you run ? Did you try the examples of ilib_build page ? I consider them as a references because they compile full gateways.

S.

Le 26 sept. 2019 à 06:16, Jakub Kopac <[hidden email]> a écrit :

Hello,

I downloaded and instaled gcc-6.2.0-64.exe

BR

JK


st 25. 9. 2019 o 21:56 Stéphane Mottelet <[hidden email]> napísal(a):
Hello

Which version of gcc did you download from equation.com ?

S.

> Le 25 sept. 2019 à 21:01, kjubo <[hidden email]> a écrit :
>
> Dear all,
>
> I am trying to make a c code.
> I instaled mingw (from equation.com) and MinGw toolbox from ATOMS.
>
> When I try to use a example code from call help page, I get following error:
> (full scilab console print)
>
>
>    Generate a loader file
>   Generate a Makefile
>   Running the Makefile
>   Compilation of fooc.obj
>   Building shared library (be patient)
>
> ------------- Compile file fooc.c --------------                                                                 
> !
>
> !
> x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER
> -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes"!
> -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/SCILAB~1.2/libs/intl"
> -I"C:/NONINS~1/SCILAB~1.2/modules/core/i!
> ncludes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/call_scilab/incl!
> udes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/localization/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" -I"C:/NONINS~1/S!
> CILAB~1.2/modules/windows_tools/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILA!
> B~1.2/modules/ast/includes/ast"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/exps"
> -I"C:/NONINS~1/SCILAB~1.2/mod!
> ules/ast/includes/operations"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/symbol"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/types"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis"
> -I"C:/NONINS~1/SCILAB~1.2/modules!
> /string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64
> -D__SCILAB_TOOLBOX__  -DNDEBUG  fooc.c !
>
> !
> ------------- Link files --------------                                                                         
> !
>
> !
> x86_64-w64-mingw32-g++.exe --shared fooc.o -std=c++11 -L"c:\program
> files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\j!
> kopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus
> -llibf2c -lcore -lcore_f -llapack -lo!
> utput_stream -ldynamic_link -linteger -loptimization_f -llibjvm
> -lscilocalization -llinpack_f -lcall_scilab -ltime!
> -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole
> -lscilab_windows -llibmex  -o libfooc.!
> dll  -Wl,--out-implib=libfooc.a -Wl,--export-all-symbols
> -Wl,--enable-auto-import                                 !
>
> !
> C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a:
> file not recognized: File format not!
> recognized                                                                                                     
> !
>
> !
> collect2.exe: error: ld returned 1 exit status                                                                   
> !
>
> !
> Makelib:127: recipe for target 'libfooc.dll' failed                                                             
> !
>
> !
> make: *** [libfooc.dll] Error 1                                                                                 
> !
> at line    25 of function dlwCompile    (
> C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci
> line 34 )
> at line    70 of function ilib_compile  (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line
> 86 )
> at line   104 of function ilib_for_link (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_for_link.sci
> line 118 )
> at line    18 of executed file C:\Users\XXX\Documents\SciLab\c experiment\z
> helpu\test_help_call.sce
>
> ilib_compile: Error while executing Makelib
>
>
> Can anybody help, how to make it works?
> (SciLab 6.0.2 on Win 7 PRO, 64 bit)
>
> thanks!
>
> BR
> JK
>
>
>
> --
> Sent from: https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
> _______________________________________________
> users mailing list
> [hidden email]
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
kjubo kjubo
Reply | Threaded
Open this post in threaded view
|

Re: c link (mingw)

I tried example from the call help page.
results from ilib_build help page:

    Generate a gateway file
   Generate a loader file
   Generate a Makefile
   Running the makefile
   Compilation of build_c.obj
   Compilation of build_c.obj
   Compilation of build_c.obj
   Compilation of fun1.obj
   Compilation of fun2.obj
   Compilation of sci_fun1.obj
   Building shared library (be patient)

!------------- Compile file build_c.cpp --------------                                                                                                                  !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-g++.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  build_c.cpp                                                                                                                                   !
!                                                                                                                                                                       !
!build_c.cpp: In function 'int build_c(wchar_t*)':                                                                                                                      !
!                                                                                                                                                                       !
!build_c.cpp:11:5: warning: 'int build_c(wchar_t*)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]                                   !
!                                                                                                                                                                       !
! int build_c(wchar_t* _pwstFuncName)                                                                                                                                   !
!                                                                                                                                                                       !
!     ^~~~~~~                                                                                                                                                           !
!                                                                                                                                                                       !
!------------- Compile file fun1.c --------------                                                                                                                       !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  fun1.c                                                                                                                                        !
!                                                                                                                                                                       !
!------------- Compile file fun2.c --------------                                                                                                                       !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  fun2.c                                                                                                                                        !
!                                                                                                                                                                       !
!------------- Compile file sci_fun1.c --------------                                                                                                                   !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  sci_fun1.c                                                                                                                                    !
!                                                                                                                                                                       !
!------------- Link files --------------                                                                                                                                !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-g++.exe --shared build_c.o fun1.o fun2.o sci_fun1.o -std=c++11 -L"c:\program files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\jkopac\AppData\Roaming\Sci!
!lab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus -llibf2c -lcore -lcore_f -llapack -loutput_stream -ldynamic_link -linteger -loptimization_f -llibjvm -lscilocalizat!
!ion -llinpack_f -lcall_scilab -ltime -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole -lscilab_windows -llibmex  -o build_c.dll  -Wl,--out-im!
!plib=build_c.a -Wl,--export-all-symbols -Wl,--enable-auto-import                                                                                                       !
!                                                                                                                                                                       !
!C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a: file not recognized: File format not recognized                                          !
!                                                                                                                                                                       !
!collect2.exe: error: ld returned 1 exit status                                                                                                                         !
!                                                                                                                                                                       !
!Makelib:127: recipe for target 'build_c.dll' failed                                                                                                                    !
!                                                                                                                                                                       !
!make: *** [build_c.dll] Error 1                                                                                                                                        !
at line    25 of function dlwCompile   ( C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci line 34 )
at line    70 of function ilib_compile ( C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line 86 )
at line   125 of function ilib_build   ( C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_build.sci line 138 )
at line    78 of executed file C:\Users\jkopac\Documents\==sukromne==\NON BALAST\SciLab\c experiment\z helpu 2\test_help_ilib_buildl.sce

ilib_compile: Error while executing Makelib.


BR

JK


št 26. 9. 2019 o 7:53 Stéphane Mottelet <[hidden email]> napísal(a):
Which example of the doc did you run ? Did you try the examples of ilib_build page ? I consider them as a references because they compile full gateways.

S.

Le 26 sept. 2019 à 06:16, Jakub Kopac <[hidden email]> a écrit :

Hello,

I downloaded and instaled gcc-6.2.0-64.exe

BR

JK


st 25. 9. 2019 o 21:56 Stéphane Mottelet <[hidden email]> napísal(a):
Hello

Which version of gcc did you download from equation.com ?

S.

> Le 25 sept. 2019 à 21:01, kjubo <[hidden email]> a écrit :
>
> Dear all,
>
> I am trying to make a c code.
> I instaled mingw (from equation.com) and MinGw toolbox from ATOMS.
>
> When I try to use a example code from call help page, I get following error:
> (full scilab console print)
>
>
>    Generate a loader file
>   Generate a Makefile
>   Running the Makefile
>   Compilation of fooc.obj
>   Building shared library (be patient)
>
> ------------- Compile file fooc.c --------------                                                                 
> !
>
> !
> x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER
> -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes"!
> -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/SCILAB~1.2/libs/intl"
> -I"C:/NONINS~1/SCILAB~1.2/modules/core/i!
> ncludes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/call_scilab/incl!
> udes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/localization/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" -I"C:/NONINS~1/S!
> CILAB~1.2/modules/windows_tools/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILA!
> B~1.2/modules/ast/includes/ast"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/exps"
> -I"C:/NONINS~1/SCILAB~1.2/mod!
> ules/ast/includes/operations"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/symbol"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/types"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis"
> -I"C:/NONINS~1/SCILAB~1.2/modules!
> /string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64
> -D__SCILAB_TOOLBOX__  -DNDEBUG  fooc.c !
>
> !
> ------------- Link files --------------                                                                         
> !
>
> !
> x86_64-w64-mingw32-g++.exe --shared fooc.o -std=c++11 -L"c:\program
> files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\j!
> kopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus
> -llibf2c -lcore -lcore_f -llapack -lo!
> utput_stream -ldynamic_link -linteger -loptimization_f -llibjvm
> -lscilocalization -llinpack_f -lcall_scilab -ltime!
> -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole
> -lscilab_windows -llibmex  -o libfooc.!
> dll  -Wl,--out-implib=libfooc.a -Wl,--export-all-symbols
> -Wl,--enable-auto-import                                 !
>
> !
> C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a:
> file not recognized: File format not!
> recognized                                                                                                     
> !
>
> !
> collect2.exe: error: ld returned 1 exit status                                                                   
> !
>
> !
> Makelib:127: recipe for target 'libfooc.dll' failed                                                             
> !
>
> !
> make: *** [libfooc.dll] Error 1                                                                                 
> !
> at line    25 of function dlwCompile    (
> C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci
> line 34 )
> at line    70 of function ilib_compile  (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line
> 86 )
> at line   104 of function ilib_for_link (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_for_link.sci
> line 118 )
> at line    18 of executed file C:\Users\XXX\Documents\SciLab\c experiment\z
> helpu\test_help_call.sce
>
> ilib_compile: Error while executing Makelib
>
>
> Can anybody help, how to make it works?
> (SciLab 6.0.2 on Win 7 PRO, 64 bit)
>
> thanks!
>
> BR
> JK
>
>
>
> --
> Sent from: https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
> _______________________________________________
> users mailing list
> [hidden email]
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
mottelet mottelet
Reply | Threaded
Open this post in threaded view
|

Re: c link (mingw)

I think that your installation of mingw toolbox is broken, as the error 
 

!C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a: file not recognized: File format not recognized                                          !
!                                                                                         


looks like an architecture mismatch (32 vs 64 bits). When you install the gcc package *before* installing the mingw atoms package (it has to be done in that order) , when you exit the relauch Scilab, during the first startup of mingw package, some libraries are converted (transcript below):
 

Mingw Compiler support for Scilab
Load macros
Converting Libraries.
Build libblasplus.a
Build liblibf2c.a
Build libcore.a
Build libcore_f.a
Build liblapack.a
Build liboutput_stream.a
Build libdynamic_link.a
Build libinteger.a
Build liboptimization_f.a
Build liblibjvm.a
Build libscilocalization.a
Build liblinpack_f.a
Build libcall_scilab.a
Build libtime.a
Build libapi_scilab.a
Build liblibintl.a
Build libast.a
Build libfileio.a
Build libio.a
Build libstring.a
Build libthreads.a
Build libsciconsole.a
Build libscilab_windows.a
Build liblibmex.a
Build libscicos.a
Build libscicos-cli.a
Build libscicos_f.a
Build libscicos_blocks.a
Build libscicos_blocks-cli.a
Build libscicos_blocks_f.a
Load help

If you have never seen this, I think that there is something wrong. Please also check that you have a 64bit Scilab.

S.



Jakub Kopac <[hidden email]> a écrit :

I tried example from the call help page.
results from ilib_build help page:
 
    Generate a gateway file
   Generate a loader file
   Generate a Makefile
   Running the makefile
   Compilation of build_c.obj
   Compilation of build_c.obj
   Compilation of build_c.obj
   Compilation of fun1.obj
   Compilation of fun2.obj
   Compilation of sci_fun1.obj
   Building shared library (be patient)

!------------- Compile file build_c.cpp --------------                                                                                                                  !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-g++.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  build_c.cpp                                                                                                                                   !
!                                                                                                                                                                       !
!build_c.cpp: In function 'int build_c(wchar_t*)':                                                                                                                      !
!                                                                                                                                                                       !
!build_c.cpp:11:5: warning: 'int build_c(wchar_t*)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]                                   !
!                                                                                                                                                                       !
! int build_c(wchar_t* _pwstFuncName)                                                                                                                                   !
!                                                                                                                                                                       !
!     ^~~~~~~                                                                                                                                                           !
!                                                                                                                                                                       !
!------------- Compile file fun1.c --------------                                                                                                                       !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  fun1.c                                                                                                                                        !
!                                                                                                                                                                       !
!------------- Compile file fun2.c --------------                                                                                                                       !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  fun2.c                                                                                                                                        !
!                                                                                                                                                                       !
!------------- Compile file sci_fun1.c --------------                                                                                                                   !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  sci_fun1.c                                                                                                                                    !
!                                                                                                                                                                       !
!------------- Link files --------------                                                                                                                                !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-g++.exe --shared build_c.o fun1.o fun2.o sci_fun1.o -std=c++11 -L"c:\program files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\jkopac\AppData\Roaming\Sci!
!lab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus -llibf2c -lcore -lcore_f -llapack -loutput_stream -ldynamic_link -linteger -loptimization_f -llibjvm -lscilocalizat!
!ion -llinpack_f -lcall_scilab -ltime -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole -lscilab_windows -llibmex  -o build_c.dll  -Wl,--out-im!
!plib=build_c.a -Wl,--export-all-symbols -Wl,--enable-auto-import                                                                                                       !
!                                                                                                                                                                       !
!C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a: file not recognized: File format not recognized                                          !
!                                                                                                                                                                       !
!collect2.exe: error: ld returned 1 exit status                                                                                                                         !
!                                                                                                                                                                       !
!Makelib:127: recipe for target 'build_c.dll' failed                                                                                                                    !
!                                                                                                                                                                       !
!make: *** [build_c.dll] Error 1                                                                                                                                        !
at line    25 of function dlwCompile   ( C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci line 34 )
at line    70 of function ilib_compile ( C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line 86 )
at line   125 of function ilib_build   ( C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_build.sci line 138 )
at line    78 of executed file C:\Users\jkopac\Documents\==sukromne==\NON BALAST\SciLab\c experiment\z helpu 2\test_help_ilib_buildl.sce

ilib_compile: Error while executing Makelib.
 

BR

JK

št 26. 9. 2019 o 7:53 Stéphane Mottelet <[hidden email]> napísal(a):
Which example of the doc did you run ? Did you try the examples of ilib_build page ? I consider them as a references because they compile full gateways.
 
S.

Le 26 sept. 2019 à 06:16, Jakub Kopac <[hidden email]> a écrit :
 
Hello,
 
I downloaded and instaled gcc-6.2.0-64.exe

BR

JK

st 25. 9. 2019 o 21:56 Stéphane Mottelet <[hidden email]> napísal(a):

Hello

Which version of gcc did you download from equation.com ?

S.

> Le 25 sept. 2019 à 21:01, kjubo <[hidden email]> a écrit :
>
> Dear all,
>
> I am trying to make a c code.
> I instaled mingw (from equation.com) and MinGw toolbox from ATOMS.
>
> When I try to use a example code from call help page, I get following error:
> (full scilab console print)
>
>
>    Generate a loader file
>   Generate a Makefile
>   Running the Makefile
>   Compilation of fooc.obj
>   Building shared library (be patient)
>
> ------------- Compile file fooc.c --------------                                                                 
> !
>
> !
> x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER
> -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes"!
> -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/SCILAB~1.2/libs/intl"
> -I"C:/NONINS~1/SCILAB~1.2/modules/core/i!
> ncludes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/call_scilab/incl!
> udes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/localization/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" -I"C:/NONINS~1/S!
> CILAB~1.2/modules/windows_tools/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILA!
> B~1.2/modules/ast/includes/ast"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/exps"
> -I"C:/NONINS~1/SCILAB~1.2/mod!
> ules/ast/includes/operations"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/symbol"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/types"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis"
> -I"C:/NONINS~1/SCILAB~1.2/modules!
> /string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64
> -D__SCILAB_TOOLBOX__  -DNDEBUG  fooc.c !
>
> !
> ------------- Link files --------------                                                                         
> !
>
> !
> x86_64-w64-mingw32-g++.exe --shared fooc.o -std=c++11 -L"c:\program
> files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\j!
> kopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus
> -llibf2c -lcore -lcore_f -llapack -lo!
> utput_stream -ldynamic_link -linteger -loptimization_f -llibjvm
> -lscilocalization -llinpack_f -lcall_scilab -ltime!
> -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole
> -lscilab_windows -llibmex  -o libfooc.!
> dll  -Wl,--out-implib=libfooc.a -Wl,--export-all-symbols
> -Wl,--enable-auto-import                                 !
>
> !
> C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a:
> file not recognized: File format not!
> recognized                                                                                                     
> !
>
> !
> collect2.exe: error: ld returned 1 exit status                                                                   
> !
>
> !
> Makelib:127: recipe for target 'libfooc.dll' failed                                                             
> !
>
> !
> make: *** [libfooc.dll] Error 1                                                                                 
> !
> at line    25 of function dlwCompile    (
> C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci
> line 34 )
> at line    70 of function ilib_compile  (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line
> 86 )
> at line   104 of function ilib_for_link (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_for_link.sci
> line 118 )
> at line    18 of executed file C:\Users\XXX\Documents\SciLab\c experiment\z
> helpu\test_help_call.sce
>
> ilib_compile: Error while executing Makelib
>
>
> Can anybody help, how to make it works?
> (SciLab 6.0.2 on Win 7 PRO, 64 bit)
>
> thanks!
>
> BR
> JK
>
>
>
> --
> Sent from: https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
> _______________________________________________
> users mailing list
> [hidden email]
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users




_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
kjubo kjubo
Reply | Threaded
Open this post in threaded view
|

Re: c link (mingw)

I checked it: Scilab is 64 bit, GCC is 64 bit (6.2.0) and was installed in correct order (gcc first, then Mingw from ATOMS).
I uninstal and install again Mingw from ATOMS, but I do not see transcript as you wrote.

Sometimes thinks just do not work as expected, so thank you for your help!

BR

JK


št 26. 9. 2019 o 14:53 <[hidden email]> napísal(a):

I think that your installation of mingw toolbox is broken, as the error 
 

!C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a: file not recognized: File format not recognized                                          !
!                                                                                         


looks like an architecture mismatch (32 vs 64 bits). When you install the gcc package *before* installing the mingw atoms package (it has to be done in that order) , when you exit the relauch Scilab, during the first startup of mingw package, some libraries are converted (transcript below):
 

Mingw Compiler support for Scilab
Load macros
Converting Libraries.
Build libblasplus.a
Build liblibf2c.a
Build libcore.a
Build libcore_f.a
Build liblapack.a
Build liboutput_stream.a
Build libdynamic_link.a
Build libinteger.a
Build liboptimization_f.a
Build liblibjvm.a
Build libscilocalization.a
Build liblinpack_f.a
Build libcall_scilab.a
Build libtime.a
Build libapi_scilab.a
Build liblibintl.a
Build libast.a
Build libfileio.a
Build libio.a
Build libstring.a
Build libthreads.a
Build libsciconsole.a
Build libscilab_windows.a
Build liblibmex.a
Build libscicos.a
Build libscicos-cli.a
Build libscicos_f.a
Build libscicos_blocks.a
Build libscicos_blocks-cli.a
Build libscicos_blocks_f.a
Load help

If you have never seen this, I think that there is something wrong. Please also check that you have a 64bit Scilab.

S.



Jakub Kopac <[hidden email]> a écrit :

I tried example from the call help page.
results from ilib_build help page:
 
    Generate a gateway file
   Generate a loader file
   Generate a Makefile
   Running the makefile
   Compilation of build_c.obj
   Compilation of build_c.obj
   Compilation of build_c.obj
   Compilation of fun1.obj
   Compilation of fun2.obj
   Compilation of sci_fun1.obj
   Building shared library (be patient)

!------------- Compile file build_c.cpp --------------                                                                                                                  !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-g++.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  build_c.cpp                                                                                                                                   !
!                                                                                                                                                                       !
!build_c.cpp: In function 'int build_c(wchar_t*)':                                                                                                                      !
!                                                                                                                                                                       !
!build_c.cpp:11:5: warning: 'int build_c(wchar_t*)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]                                   !
!                                                                                                                                                                       !
! int build_c(wchar_t* _pwstFuncName)                                                                                                                                   !
!                                                                                                                                                                       !
!     ^~~~~~~                                                                                                                                                           !
!                                                                                                                                                                       !
!------------- Compile file fun1.c --------------                                                                                                                       !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  fun1.c                                                                                                                                        !
!                                                                                                                                                                       !
!------------- Compile file fun2.c --------------                                                                                                                       !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  fun2.c                                                                                                                                        !
!                                                                                                                                                                       !
!------------- Compile file sci_fun1.c --------------                                                                                                                   !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  sci_fun1.c                                                                                                                                    !
!                                                                                                                                                                       !
!------------- Link files --------------                                                                                                                                !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-g++.exe --shared build_c.o fun1.o fun2.o sci_fun1.o -std=c++11 -L"c:\program files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\jkopac\AppData\Roaming\Sci!
!lab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus -llibf2c -lcore -lcore_f -llapack -loutput_stream -ldynamic_link -linteger -loptimization_f -llibjvm -lscilocalizat!
!ion -llinpack_f -lcall_scilab -ltime -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole -lscilab_windows -llibmex  -o build_c.dll  -Wl,--out-im!
!plib=build_c.a -Wl,--export-all-symbols -Wl,--enable-auto-import                                                                                                       !
!                                                                                                                                                                       !
!C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a: file not recognized: File format not recognized                                          !
!                                                                                                                                                                       !
!collect2.exe: error: ld returned 1 exit status                                                                                                                         !
!                                                                                                                                                                       !
!Makelib:127: recipe for target 'build_c.dll' failed                                                                                                                    !
!                                                                                                                                                                       !
!make: *** [build_c.dll] Error 1                                                                                                                                        !
at line    25 of function dlwCompile   ( C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci line 34 )
at line    70 of function ilib_compile ( C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line 86 )
at line   125 of function ilib_build   ( C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_build.sci line 138 )
at line    78 of executed file C:\Users\jkopac\Documents\==sukromne==\NON BALAST\SciLab\c experiment\z helpu 2\test_help_ilib_buildl.sce

ilib_compile: Error while executing Makelib.
 

BR

JK

št 26. 9. 2019 o 7:53 Stéphane Mottelet <[hidden email]> napísal(a):
Which example of the doc did you run ? Did you try the examples of ilib_build page ? I consider them as a references because they compile full gateways.
 
S.

Le 26 sept. 2019 à 06:16, Jakub Kopac <[hidden email]> a écrit :
 
Hello,
 
I downloaded and instaled gcc-6.2.0-64.exe

BR

JK

st 25. 9. 2019 o 21:56 Stéphane Mottelet <[hidden email]> napísal(a):

Hello

Which version of gcc did you download from equation.com ?

S.

> Le 25 sept. 2019 à 21:01, kjubo <[hidden email]> a écrit :
>
> Dear all,
>
> I am trying to make a c code.
> I instaled mingw (from equation.com) and MinGw toolbox from ATOMS.
>
> When I try to use a example code from call help page, I get following error:
> (full scilab console print)
>
>
>    Generate a loader file
>   Generate a Makefile
>   Running the Makefile
>   Compilation of fooc.obj
>   Building shared library (be patient)
>
> ------------- Compile file fooc.c --------------                                                                 
> !
>
> !
> x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER
> -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes"!
> -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/SCILAB~1.2/libs/intl"
> -I"C:/NONINS~1/SCILAB~1.2/modules/core/i!
> ncludes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/call_scilab/incl!
> udes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/localization/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" -I"C:/NONINS~1/S!
> CILAB~1.2/modules/windows_tools/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILA!
> B~1.2/modules/ast/includes/ast"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/exps"
> -I"C:/NONINS~1/SCILAB~1.2/mod!
> ules/ast/includes/operations"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/symbol"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/types"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis"
> -I"C:/NONINS~1/SCILAB~1.2/modules!
> /string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64
> -D__SCILAB_TOOLBOX__  -DNDEBUG  fooc.c !
>
> !
> ------------- Link files --------------                                                                         
> !
>
> !
> x86_64-w64-mingw32-g++.exe --shared fooc.o -std=c++11 -L"c:\program
> files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\j!
> kopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus
> -llibf2c -lcore -lcore_f -llapack -lo!
> utput_stream -ldynamic_link -linteger -loptimization_f -llibjvm
> -lscilocalization -llinpack_f -lcall_scilab -ltime!
> -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole
> -lscilab_windows -llibmex  -o libfooc.!
> dll  -Wl,--out-implib=libfooc.a -Wl,--export-all-symbols
> -Wl,--enable-auto-import                                 !
>
> !
> C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a:
> file not recognized: File format not!
> recognized                                                                                                     
> !
>
> !
> collect2.exe: error: ld returned 1 exit status                                                                   
> !
>
> !
> Makelib:127: recipe for target 'libfooc.dll' failed                                                             
> !
>
> !
> make: *** [libfooc.dll] Error 1                                                                                 
> !
> at line    25 of function dlwCompile    (
> C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci
> line 34 )
> at line    70 of function ilib_compile  (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line
> 86 )
> at line   104 of function ilib_for_link (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_for_link.sci
> line 118 )
> at line    18 of executed file C:\Users\XXX\Documents\SciLab\c experiment\z
> helpu\test_help_call.sce
>
> ilib_compile: Error while executing Makelib
>
>
> Can anybody help, how to make it works?
> (SciLab 6.0.2 on Win 7 PRO, 64 bit)
>
> thanks!
>
> BR
> JK
>
>
>
> --
> Sent from: https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
> _______________________________________________
> users mailing list
> [hidden email]
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
mottelet mottelet
Reply | Threaded
Open this post in threaded view
|

Re: c link (mingw)



Le 27 sept. 2019 à 06:30, Jakub Kopac <[hidden email]> a écrit :

I checked it: Scilab is 64 bit, GCC is 64 bit (6.2.0) and was installed in correct order (gcc first, then Mingw from ATOMS).
I uninstal and install again Mingw from ATOMS, but I do not see transcript as you wrote.


I suppose that compilation still doesn’t work ? I would suggest that after uninstalling Mingw atoms package you delete your user Scilab folder (SCIHOME) then reinstall.

S.

Sometimes thinks just do not work as expected, so thank you for your help!

BR

JK


št 26. 9. 2019 o 14:53 <[hidden email]> napísal(a):

I think that your installation of mingw toolbox is broken, as the error 
 

!C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a: file not recognized: File format not recognized                                          !
!                                                                                         


looks like an architecture mismatch (32 vs 64 bits). When you install the gcc package *before* installing the mingw atoms package (it has to be done in that order) , when you exit the relauch Scilab, during the first startup of mingw package, some libraries are converted (transcript below):
 

Mingw Compiler support for Scilab
Load macros
Converting Libraries.
Build libblasplus.a
Build liblibf2c.a
Build libcore.a
Build libcore_f.a
Build liblapack.a
Build liboutput_stream.a
Build libdynamic_link.a
Build libinteger.a
Build liboptimization_f.a
Build liblibjvm.a
Build libscilocalization.a
Build liblinpack_f.a
Build libcall_scilab.a
Build libtime.a
Build libapi_scilab.a
Build liblibintl.a
Build libast.a
Build libfileio.a
Build libio.a
Build libstring.a
Build libthreads.a
Build libsciconsole.a
Build libscilab_windows.a
Build liblibmex.a
Build libscicos.a
Build libscicos-cli.a
Build libscicos_f.a
Build libscicos_blocks.a
Build libscicos_blocks-cli.a
Build libscicos_blocks_f.a
Load help

If you have never seen this, I think that there is something wrong. Please also check that you have a 64bit Scilab.

S.



Jakub Kopac <[hidden email]> a écrit :

I tried example from the call help page.
results from ilib_build help page:
 
    Generate a gateway file
   Generate a loader file
   Generate a Makefile
   Running the makefile
   Compilation of build_c.obj
   Compilation of build_c.obj
   Compilation of build_c.obj
   Compilation of fun1.obj
   Compilation of fun2.obj
   Compilation of sci_fun1.obj
   Building shared library (be patient)

!------------- Compile file build_c.cpp --------------                                                                                                                  !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-g++.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  build_c.cpp                                                                                                                                   !
!                                                                                                                                                                       !
!build_c.cpp: In function 'int build_c(wchar_t*)':                                                                                                                      !
!                                                                                                                                                                       !
!build_c.cpp:11:5: warning: 'int build_c(wchar_t*)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]                                   !
!                                                                                                                                                                       !
! int build_c(wchar_t* _pwstFuncName)                                                                                                                                   !
!                                                                                                                                                                       !
!     ^~~~~~~                                                                                                                                                           !
!                                                                                                                                                                       !
!------------- Compile file fun1.c --------------                                                                                                                       !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  fun1.c                                                                                                                                        !
!                                                                                                                                                                       !
!------------- Compile file fun2.c --------------                                                                                                                       !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  fun2.c                                                                                                                                        !
!                                                                                                                                                                       !
!------------- Compile file sci_fun1.c --------------                                                                                                                   !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  sci_fun1.c                                                                                                                                    !
!                                                                                                                                                                       !
!------------- Link files --------------                                                                                                                                !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-g++.exe --shared build_c.o fun1.o fun2.o sci_fun1.o -std=c++11 -L"c:\program files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\jkopac\AppData\Roaming\Sci!
!lab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus -llibf2c -lcore -lcore_f -llapack -loutput_stream -ldynamic_link -linteger -loptimization_f -llibjvm -lscilocalizat!
!ion -llinpack_f -lcall_scilab -ltime -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole -lscilab_windows -llibmex  -o build_c.dll  -Wl,--out-im!
!plib=build_c.a -Wl,--export-all-symbols -Wl,--enable-auto-import                                                                                                       !
!                                                                                                                                                                       !
!C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a: file not recognized: File format not recognized                                          !
!                                                                                                                                                                       !
!collect2.exe: error: ld returned 1 exit status                                                                                                                         !
!                                                                                                                                                                       !
!Makelib:127: recipe for target 'build_c.dll' failed                                                                                                                    !
!                                                                                                                                                                       !
!make: *** [build_c.dll] Error 1                                                                                                                                        !
at line    25 of function dlwCompile   ( C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci line 34 )
at line    70 of function ilib_compile ( C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line 86 )
at line   125 of function ilib_build   ( C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_build.sci line 138 )
at line    78 of executed file C:\Users\jkopac\Documents\==sukromne==\NON BALAST\SciLab\c experiment\z helpu 2\test_help_ilib_buildl.sce

ilib_compile: Error while executing Makelib.
 

BR

JK

št 26. 9. 2019 o 7:53 Stéphane Mottelet <[hidden email]> napísal(a):
Which example of the doc did you run ? Did you try the examples of ilib_build page ? I consider them as a references because they compile full gateways.
 
S.

Le 26 sept. 2019 à 06:16, Jakub Kopac <[hidden email]> a écrit :
 
Hello,
 
I downloaded and instaled gcc-6.2.0-64.exe

BR

JK

st 25. 9. 2019 o 21:56 Stéphane Mottelet <[hidden email]> napísal(a):

Hello

Which version of gcc did you download from equation.com ?

S.

> Le 25 sept. 2019 à 21:01, kjubo <[hidden email]> a écrit :
>
> Dear all,
>
> I am trying to make a c code.
> I instaled mingw (from equation.com) and MinGw toolbox from ATOMS.
>
> When I try to use a example code from call help page, I get following error:
> (full scilab console print)
>
>
>    Generate a loader file
>   Generate a Makefile
>   Running the Makefile
>   Compilation of fooc.obj
>   Building shared library (be patient)
>
> ------------- Compile file fooc.c --------------                                                                 
> !
>
> !
> x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER
> -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes"!
> -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/SCILAB~1.2/libs/intl"
> -I"C:/NONINS~1/SCILAB~1.2/modules/core/i!
> ncludes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/call_scilab/incl!
> udes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/localization/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" -I"C:/NONINS~1/S!
> CILAB~1.2/modules/windows_tools/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILA!
> B~1.2/modules/ast/includes/ast"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/exps"
> -I"C:/NONINS~1/SCILAB~1.2/mod!
> ules/ast/includes/operations"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/symbol"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/types"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis"
> -I"C:/NONINS~1/SCILAB~1.2/modules!
> /string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64
> -D__SCILAB_TOOLBOX__  -DNDEBUG  fooc.c !
>
> !
> ------------- Link files --------------                                                                         
> !
>
> !
> x86_64-w64-mingw32-g++.exe --shared fooc.o -std=c++11 -L"c:\program
> files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\j!
> kopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus
> -llibf2c -lcore -lcore_f -llapack -lo!
> utput_stream -ldynamic_link -linteger -loptimization_f -llibjvm
> -lscilocalization -llinpack_f -lcall_scilab -ltime!
> -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole
> -lscilab_windows -llibmex  -o libfooc.!
> dll  -Wl,--out-implib=libfooc.a -Wl,--export-all-symbols
> -Wl,--enable-auto-import                                 !
>
> !
> C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a:
> file not recognized: File format not!
> recognized                                                                                                     
> !
>
> !
> collect2.exe: error: ld returned 1 exit status                                                                   
> !
>
> !
> Makelib:127: recipe for target 'libfooc.dll' failed                                                             
> !
>
> !
> make: *** [libfooc.dll] Error 1                                                                                 
> !
> at line    25 of function dlwCompile    (
> C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci
> line 34 )
> at line    70 of function ilib_compile  (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line
> 86 )
> at line   104 of function ilib_for_link (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_for_link.sci
> line 118 )
> at line    18 of executed file C:\Users\XXX\Documents\SciLab\c experiment\z
> helpu\test_help_call.sce
>
> ilib_compile: Error while executing Makelib
>
>
> Can anybody help, how to make it works?
> (SciLab 6.0.2 on Win 7 PRO, 64 bit)
>
> thanks!
>
> BR
> JK
>
>
>
> --
> Sent from: https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
> _______________________________________________
> users mailing list
> [hidden email]
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
kjubo kjubo
Reply | Threaded
Open this post in threaded view
|

Re: c link (mingw)

Dear Stephane,

after your last advice, now everything works.
Uninstalling Mingw and deleting SCIHOME, then reinstall Mingw and all work as expected!

Many thanks!

BR

JK


pi 27. 9. 2019 o 9:18 Stéphane Mottelet <[hidden email]> napísal(a):


Le 27 sept. 2019 à 06:30, Jakub Kopac <[hidden email]> a écrit :

I checked it: Scilab is 64 bit, GCC is 64 bit (6.2.0) and was installed in correct order (gcc first, then Mingw from ATOMS).
I uninstal and install again Mingw from ATOMS, but I do not see transcript as you wrote.


I suppose that compilation still doesn’t work ? I would suggest that after uninstalling Mingw atoms package you delete your user Scilab folder (SCIHOME) then reinstall.

S.

Sometimes thinks just do not work as expected, so thank you for your help!

BR

JK


št 26. 9. 2019 o 14:53 <[hidden email]> napísal(a):

I think that your installation of mingw toolbox is broken, as the error 
 

!C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a: file not recognized: File format not recognized                                          !
!                                                                                         


looks like an architecture mismatch (32 vs 64 bits). When you install the gcc package *before* installing the mingw atoms package (it has to be done in that order) , when you exit the relauch Scilab, during the first startup of mingw package, some libraries are converted (transcript below):
 

Mingw Compiler support for Scilab
Load macros
Converting Libraries.
Build libblasplus.a
Build liblibf2c.a
Build libcore.a
Build libcore_f.a
Build liblapack.a
Build liboutput_stream.a
Build libdynamic_link.a
Build libinteger.a
Build liboptimization_f.a
Build liblibjvm.a
Build libscilocalization.a
Build liblinpack_f.a
Build libcall_scilab.a
Build libtime.a
Build libapi_scilab.a
Build liblibintl.a
Build libast.a
Build libfileio.a
Build libio.a
Build libstring.a
Build libthreads.a
Build libsciconsole.a
Build libscilab_windows.a
Build liblibmex.a
Build libscicos.a
Build libscicos-cli.a
Build libscicos_f.a
Build libscicos_blocks.a
Build libscicos_blocks-cli.a
Build libscicos_blocks_f.a
Load help

If you have never seen this, I think that there is something wrong. Please also check that you have a 64bit Scilab.

S.



Jakub Kopac <[hidden email]> a écrit :

I tried example from the call help page.
results from ilib_build help page:
 
    Generate a gateway file
   Generate a loader file
   Generate a Makefile
   Running the makefile
   Compilation of build_c.obj
   Compilation of build_c.obj
   Compilation of build_c.obj
   Compilation of fun1.obj
   Compilation of fun2.obj
   Compilation of sci_fun1.obj
   Building shared library (be patient)

!------------- Compile file build_c.cpp --------------                                                                                                                  !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-g++.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  build_c.cpp                                                                                                                                   !
!                                                                                                                                                                       !
!build_c.cpp: In function 'int build_c(wchar_t*)':                                                                                                                      !
!                                                                                                                                                                       !
!build_c.cpp:11:5: warning: 'int build_c(wchar_t*)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]                                   !
!                                                                                                                                                                       !
! int build_c(wchar_t* _pwstFuncName)                                                                                                                                   !
!                                                                                                                                                                       !
!     ^~~~~~~                                                                                                                                                           !
!                                                                                                                                                                       !
!------------- Compile file fun1.c --------------                                                                                                                       !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  fun1.c                                                                                                                                        !
!                                                                                                                                                                       !
!------------- Compile file fun2.c --------------                                                                                                                       !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  fun2.c                                                                                                                                        !
!                                                                                                                                                                       !
!------------- Compile file sci_fun1.c --------------                                                                                                                   !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  sci_fun1.c                                                                                                                                    !
!                                                                                                                                                                       !
!------------- Link files --------------                                                                                                                                !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-g++.exe --shared build_c.o fun1.o fun2.o sci_fun1.o -std=c++11 -L"c:\program files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\jkopac\AppData\Roaming\Sci!
!lab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus -llibf2c -lcore -lcore_f -llapack -loutput_stream -ldynamic_link -linteger -loptimization_f -llibjvm -lscilocalizat!
!ion -llinpack_f -lcall_scilab -ltime -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole -lscilab_windows -llibmex  -o build_c.dll  -Wl,--out-im!
!plib=build_c.a -Wl,--export-all-symbols -Wl,--enable-auto-import                                                                                                       !
!                                                                                                                                                                       !
!C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a: file not recognized: File format not recognized                                          !
!                                                                                                                                                                       !
!collect2.exe: error: ld returned 1 exit status                                                                                                                         !
!                                                                                                                                                                       !
!Makelib:127: recipe for target 'build_c.dll' failed                                                                                                                    !
!                                                                                                                                                                       !
!make: *** [build_c.dll] Error 1                                                                                                                                        !
at line    25 of function dlwCompile   ( C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci line 34 )
at line    70 of function ilib_compile ( C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line 86 )
at line   125 of function ilib_build   ( C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_build.sci line 138 )
at line    78 of executed file C:\Users\jkopac\Documents\==sukromne==\NON BALAST\SciLab\c experiment\z helpu 2\test_help_ilib_buildl.sce

ilib_compile: Error while executing Makelib.
 

BR

JK

št 26. 9. 2019 o 7:53 Stéphane Mottelet <[hidden email]> napísal(a):
Which example of the doc did you run ? Did you try the examples of ilib_build page ? I consider them as a references because they compile full gateways.
 
S.

Le 26 sept. 2019 à 06:16, Jakub Kopac <[hidden email]> a écrit :
 
Hello,
 
I downloaded and instaled gcc-6.2.0-64.exe

BR

JK

st 25. 9. 2019 o 21:56 Stéphane Mottelet <[hidden email]> napísal(a):

Hello

Which version of gcc did you download from equation.com ?

S.

> Le 25 sept. 2019 à 21:01, kjubo <[hidden email]> a écrit :
>
> Dear all,
>
> I am trying to make a c code.
> I instaled mingw (from equation.com) and MinGw toolbox from ATOMS.
>
> When I try to use a example code from call help page, I get following error:
> (full scilab console print)
>
>
>    Generate a loader file
>   Generate a Makefile
>   Running the Makefile
>   Compilation of fooc.obj
>   Building shared library (be patient)
>
> ------------- Compile file fooc.c --------------                                                                 
> !
>
> !
> x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER
> -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes"!
> -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/SCILAB~1.2/libs/intl"
> -I"C:/NONINS~1/SCILAB~1.2/modules/core/i!
> ncludes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/call_scilab/incl!
> udes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/localization/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" -I"C:/NONINS~1/S!
> CILAB~1.2/modules/windows_tools/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILA!
> B~1.2/modules/ast/includes/ast"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/exps"
> -I"C:/NONINS~1/SCILAB~1.2/mod!
> ules/ast/includes/operations"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/symbol"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/types"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis"
> -I"C:/NONINS~1/SCILAB~1.2/modules!
> /string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64
> -D__SCILAB_TOOLBOX__  -DNDEBUG  fooc.c !
>
> !
> ------------- Link files --------------                                                                         
> !
>
> !
> x86_64-w64-mingw32-g++.exe --shared fooc.o -std=c++11 -L"c:\program
> files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\j!
> kopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus
> -llibf2c -lcore -lcore_f -llapack -lo!
> utput_stream -ldynamic_link -linteger -loptimization_f -llibjvm
> -lscilocalization -llinpack_f -lcall_scilab -ltime!
> -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole
> -lscilab_windows -llibmex  -o libfooc.!
> dll  -Wl,--out-implib=libfooc.a -Wl,--export-all-symbols
> -Wl,--enable-auto-import                                 !
>
> !
> C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a:
> file not recognized: File format not!
> recognized                                                                                                     
> !
>
> !
> collect2.exe: error: ld returned 1 exit status                                                                   
> !
>
> !
> Makelib:127: recipe for target 'libfooc.dll' failed                                                             
> !
>
> !
> make: *** [libfooc.dll] Error 1                                                                                 
> !
> at line    25 of function dlwCompile    (
> C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci
> line 34 )
> at line    70 of function ilib_compile  (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line
> 86 )
> at line   104 of function ilib_for_link (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_for_link.sci
> line 118 )
> at line    18 of executed file C:\Users\XXX\Documents\SciLab\c experiment\z
> helpu\test_help_call.sce
>
> ilib_compile: Error while executing Makelib
>
>
> Can anybody help, how to make it works?
> (SciLab 6.0.2 on Win 7 PRO, 64 bit)
>
> thanks!
>
> BR
> JK
>
>
>
> --
> Sent from: https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
> _______________________________________________
> users mailing list
> [hidden email]
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
mottelet mottelet
Reply | Threaded
Open this post in threaded view
|

Re: c link (mingw)

Great ! Most of the time, the problem is due to a first install of MingGW without having installed GCC first (it can be years ago so that you barely remember).  After this, even after uninstalling the package, there is still some file in SCIHOME that make believe MinGXW install script that libraries do not have to be built again. The problem is that this file is likely created  at first startup of the package, even if GCC is not installed. A little fix in the startup script seems necessary...

S.

Le 27/09/2019 à 09:42, Jakub Kopac a écrit :
Dear Stephane,

after your last advice, now everything works.
Uninstalling Mingw and deleting SCIHOME, then reinstall Mingw and all work as expected!

Many thanks!

BR

JK


pi 27. 9. 2019 o 9:18 Stéphane Mottelet <[hidden email]> napísal(a):


Le 27 sept. 2019 à 06:30, Jakub Kopac <[hidden email]> a écrit :

I checked it: Scilab is 64 bit, GCC is 64 bit (6.2.0) and was installed in correct order (gcc first, then Mingw from ATOMS).
I uninstal and install again Mingw from ATOMS, but I do not see transcript as you wrote.


I suppose that compilation still doesn’t work ? I would suggest that after uninstalling Mingw atoms package you delete your user Scilab folder (SCIHOME) then reinstall.

S.

Sometimes thinks just do not work as expected, so thank you for your help!

BR

JK


št 26. 9. 2019 o 14:53 <[hidden email]> napísal(a):

I think that your installation of mingw toolbox is broken, as the error 
 

!C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a: file not recognized: File format not recognized                                          !
!                                                                                         


looks like an architecture mismatch (32 vs 64 bits). When you install the gcc package *before* installing the mingw atoms package (it has to be done in that order) , when you exit the relauch Scilab, during the first startup of mingw package, some libraries are converted (transcript below):
 

Mingw Compiler support for Scilab
Load macros
Converting Libraries.
Build libblasplus.a
Build liblibf2c.a
Build libcore.a
Build libcore_f.a
Build liblapack.a
Build liboutput_stream.a
Build libdynamic_link.a
Build libinteger.a
Build liboptimization_f.a
Build liblibjvm.a
Build libscilocalization.a
Build liblinpack_f.a
Build libcall_scilab.a
Build libtime.a
Build libapi_scilab.a
Build liblibintl.a
Build libast.a
Build libfileio.a
Build libio.a
Build libstring.a
Build libthreads.a
Build libsciconsole.a
Build libscilab_windows.a
Build liblibmex.a
Build libscicos.a
Build libscicos-cli.a
Build libscicos_f.a
Build libscicos_blocks.a
Build libscicos_blocks-cli.a
Build libscicos_blocks_f.a
Load help

If you have never seen this, I think that there is something wrong. Please also check that you have a 64bit Scilab.

S.



Jakub Kopac <[hidden email]> a écrit :

I tried example from the call help page.
results from ilib_build help page:
 
    Generate a gateway file
   Generate a loader file
   Generate a Makefile
   Running the makefile
   Compilation of build_c.obj
   Compilation of build_c.obj
   Compilation of build_c.obj
   Compilation of fun1.obj
   Compilation of fun2.obj
   Compilation of sci_fun1.obj
   Building shared library (be patient)

!------------- Compile file build_c.cpp --------------                                                                                                                  !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-g++.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  build_c.cpp                                                                                                                                   !
!                                                                                                                                                                       !
!build_c.cpp: In function 'int build_c(wchar_t*)':                                                                                                                      !
!                                                                                                                                                                       !
!build_c.cpp:11:5: warning: 'int build_c(wchar_t*)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]                                   !
!                                                                                                                                                                       !
! int build_c(wchar_t* _pwstFuncName)                                                                                                                                   !
!                                                                                                                                                                       !
!     ^~~~~~~                                                                                                                                                           !
!                                                                                                                                                                       !
!------------- Compile file fun1.c --------------                                                                                                                       !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  fun1.c                                                                                                                                        !
!                                                                                                                                                                       !
!------------- Compile file fun2.c --------------                                                                                                                       !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  fun2.c                                                                                                                                        !
!                                                                                                                                                                       !
!------------- Compile file sci_fun1.c --------------                                                                                                                   !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes" -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/S!
!CILAB~1.2/libs/intl" -I"C:/NONINS~1/SCILAB~1.2/modules/core/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/call_sci!
!lab/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/localization/!
!includes" -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" !
!-I"C:/NONINS~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/ast" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/exps" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/operations" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse" -I"C:/!
!NONINS~1/SCILAB~1.2/modules/ast/includes/symbol" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env" -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/types" -I"C:!
!/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis" -I"C:/NONINS~1/SCILAB~1.2/modules/string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64 -D__SCI!
!LAB_TOOLBOX__  -DNDEBUG  sci_fun1.c                                                                                                                                    !
!                                                                                                                                                                       !
!------------- Link files --------------                                                                                                                                !
!                                                                                                                                                                       !
!x86_64-w64-mingw32-g++.exe --shared build_c.o fun1.o fun2.o sci_fun1.o -std=c++11 -L"c:\program files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\jkopac\AppData\Roaming\Sci!
!lab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus -llibf2c -lcore -lcore_f -llapack -loutput_stream -ldynamic_link -linteger -loptimization_f -llibjvm -lscilocalizat!
!ion -llinpack_f -lcall_scilab -ltime -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole -lscilab_windows -llibmex  -o build_c.dll  -Wl,--out-im!
!plib=build_c.a -Wl,--export-all-symbols -Wl,--enable-auto-import                                                                                                       !
!                                                                                                                                                                       !
!C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a: file not recognized: File format not recognized                                          !
!                                                                                                                                                                       !
!collect2.exe: error: ld returned 1 exit status                                                                                                                         !
!                                                                                                                                                                       !
!Makelib:127: recipe for target 'build_c.dll' failed                                                                                                                    !
!                                                                                                                                                                       !
!make: *** [build_c.dll] Error 1                                                                                                                                        !
at line    25 of function dlwCompile   ( C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci line 34 )
at line    70 of function ilib_compile ( C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line 86 )
at line   125 of function ilib_build   ( C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_build.sci line 138 )
at line    78 of executed file C:\Users\jkopac\Documents\==sukromne==\NON BALAST\SciLab\c experiment\z helpu 2\test_help_ilib_buildl.sce

ilib_compile: Error while executing Makelib.
 

BR

JK

št 26. 9. 2019 o 7:53 Stéphane Mottelet <[hidden email]> napísal(a):
Which example of the doc did you run ? Did you try the examples of ilib_build page ? I consider them as a references because they compile full gateways.
 
S.

Le 26 sept. 2019 à 06:16, Jakub Kopac <[hidden email]> a écrit :
 
Hello,
 
I downloaded and instaled gcc-6.2.0-64.exe

BR

JK

st 25. 9. 2019 o 21:56 Stéphane Mottelet <[hidden email]> napísal(a):

Hello

Which version of gcc did you download from equation.com ?

S.

> Le 25 sept. 2019 à 21:01, kjubo <[hidden email]> a écrit :
>
> Dear all,
>
> I am trying to make a c code.
> I instaled mingw (from equation.com) and MinGw toolbox from ATOMS.
>
> When I try to use a example code from call help page, I get following error:
> (full scilab console print)
>
>
>    Generate a loader file
>   Generate a Makefile
>   Running the Makefile
>   Compilation of fooc.obj
>   Building shared library (be patient)
>
> ------------- Compile file fooc.c --------------                                                                 
> !
>
> !
> x86_64-w64-mingw32-gcc.exe -c -DWIN32 -DSTRICT -DFORDLL -D_MSC_VER
> -I"C:/NONINS~1/SCILAB~1.2/libs/MALLOC/includes"!
> -I"C:/NONINS~1/SCILAB~1.2/libs/f2c" -I"C:/NONINS~1/SCILAB~1.2/libs/intl"
> -I"C:/NONINS~1/SCILAB~1.2/modules/core/i!
> ncludes" -I"C:/NONINS~1/SCILAB~1.2/modules/api_scilab/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/call_scilab/incl!
> udes" -I"C:/NONINS~1/SCILAB~1.2/modules/output_stream/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/jvm/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/localization/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/dynamic_link/includes" -I!
> "C:/NONINS~1/SCILAB~1.2/modules/mexlib/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/time/includes" -I"C:/NONINS~1/S!
> CILAB~1.2/modules/windows_tools/includes"
> -I"C:/NONINS~1/SCILAB~1.2/modules/threads/includes" -I"C:/NONINS~1/SCILA!
> B~1.2/modules/ast/includes/ast"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/exps"
> -I"C:/NONINS~1/SCILAB~1.2/mod!
> ules/ast/includes/operations"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/parse"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/symbol"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/system_env"
> -I"C:/NONINS~1/SCILAB~1.2/modu!
> les/ast/includes/types"
> -I"C:/NONINS~1/SCILAB~1.2/modules/ast/includes/analysis"
> -I"C:/NONINS~1/SCILAB~1.2/modules!
> /string/includes" -I"C:/NONINS~1/SCILAB~1.2/modules/console/includes" -m64
> -D__SCILAB_TOOLBOX__  -DNDEBUG  fooc.c !
>
> !
> ------------- Link files --------------                                                                         
> !
>
> !
> x86_64-w64-mingw32-g++.exe --shared fooc.o -std=c++11 -L"c:\program
> files\gcc\x86_64-w64-mingw32\lib" -LC:\Users\j!
> kopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64 -lgfortran -lblasplus
> -llibf2c -lcore -lcore_f -llapack -lo!
> utput_stream -ldynamic_link -linteger -loptimization_f -llibjvm
> -lscilocalization -llinpack_f -lcall_scilab -ltime!
> -lapi_scilab -llibintl -last -lfileio -lio -lstring -lthreads -lsciconsole
> -lscilab_windows -llibmex  -o libfooc.!
> dll  -Wl,--out-implib=libfooc.a -Wl,--export-all-symbols
> -Wl,--enable-auto-import                                 !
>
> !
> C:\Users\jkopac\AppData\Roaming\Scilab\scilab-6.0.2\mingwlib_x64/liblibf2c.a:
> file not recognized: File format not!
> recognized                                                                                                     
> !
>
> !
> collect2.exe: error: ld returned 1 exit status                                                                   
> !
>
> !
> Makelib:127: recipe for target 'libfooc.dll' failed                                                             
> !
>
> !
> make: *** [libfooc.dll] Error 1                                                                                 
> !
> at line    25 of function dlwCompile    (
> C:\NONINS~1\SCILAB~1.2\contrib\mingw\010~1.5\macros\windows\dlwCompile.sci
> line 34 )
> at line    70 of function ilib_compile  (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_compile.sci line
> 86 )
> at line   104 of function ilib_for_link (
> C:\NONINSTALL\scilab-6.0.2\modules\dynamic_link\macros\ilib_for_link.sci
> line 118 )
> at line    18 of executed file C:\Users\XXX\Documents\SciLab\c experiment\z
> helpu\test_help_call.sce
>
> ilib_compile: Error while executing Makelib
>
>
> Can anybody help, how to make it works?
> (SciLab 6.0.2 on Win 7 PRO, 64 bit)
>
> thanks!
>
> BR
> JK
>
>
>
> --
> Sent from: https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
> _______________________________________________
> users mailing list
> [hidden email]
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
-- 
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users