"foo6: Wrong number of input argument(s): 2 expected." in Getting started with API_Scilab
Reported by shinta.main.jp
BUG DESCRIPTION:
----------------
The instruction has four steps and the final step doesn't work.
https://help.scilab.org/docs/6.0.0/en_US/api_scilab_getting_started.html
ERROR LOG:
----------
Startup execution:
loading initial environment
--> files=["sci_foo6.c"];
--> ilib_build('build_lib',['foo6','sci_foo6'],files,[]);
Generate a gateway file
Generate a loader file
Generate a Makefile
Running the makefile
Compilation of build_lib.cpp
Compilation of build_lib.h
Compilation of build_lib.hxx
Compilation of sci_foo6.c
Building shared library (be patient)
Generate a cleaner file
--> exec loader.sce
--> // This file is released under the 3-clause BSD license. See COPYING-BSD.
--> // Generated by builder.sce : Please, do not edit this file
--> // ----------------------------------------------------------------------------
--> //
--> if ~win64() then
--> warning(_("This module requires a Windows x64 platform."));
--> return
--> end
--> //
--> build_lib_path = get_absolute_file_path('loader.sce');
--> //
--> // ulink previous function with same name
--> [bOK, ilib] = c_link('build_lib');
--> if bOK then
--> ulink(ilib);
--> end
--> //
--> list_functions = [ 'foo6';
--> ];
--> addinter(build_lib_path + filesep() + 'build_lib' + getdynlibext(), 'build_lib', list_functions);
Shared archive loaded.
Link done.
--> // remove temp. variables on stack
--> clear build_lib_path;
--> clear bOK;
--> clear ilib;
--> clear list_functions;
--> // ----------------------------------------------------------------------------
--> [c, d] = foo6([2,%pi], [%t, %f])
foo6: Wrong number of input argument(s): 2 expected.
HOW TO REPRODUCE THE BUG:
-------------------------
[c, d] = foo6([2,%pi], [%t, %f])
OTHER INFORMATION:
------------------
* Windows 10 Home (64bit)
* Visual Studio 2013 Community