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 <stephane.motte...@utc.fr> 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 <kopac.ja...@gmail.com> 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 <stephane.motte...@utc.fr> > napísal(a): > >> Hello >> >> Which version of gcc did you download from equation.com >> <https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/equation.com> >> ? >> >> S. >> >> > Le 25 sept. 2019 à 21:01, kjubo <kopac.ja...@gmail.com> a écrit : >> > >> > Dear all, >> > >> > I am trying to make a c code. >> > I instaled mingw (from equation.com >> <https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/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 >> <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 >> > users@lists.scilab.org >> > >> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users >> <https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users> >> >> _______________________________________________ >> users mailing list >> users@lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> <https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users> >> > _______________________________________________ > users mailing list > users@lists.scilab.org > > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users@lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users >
_______________________________________________ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users