Hello, I try to work with a mex function and I have some difficulties. Obvi
Reported by Ronan Trépos
-- Bug description --
Hello,
I try to work with a mex function and I have some difficulties.
Obviously, all methods are not implemented but I wonder which ones can be used. I give you an example in attachment (it
is derived from cppmex scilab example). This example concerns the translation of mxArray.
Please, tell me when the all mex framework should be available ?
-- Scilab error message --
___________________________________________
scilab-branches-5.1-1235712018
Consortium Scilab (DIGITEO)
Copyright (c) 1989-2009 (INRIA)
Copyright (c) 1989-2007 (ENPC)
___________________________________________
Initialisation:
Chargement de l'environnement de travail
-->exec('demo.sce')
-->// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-->// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr>
-->//
-->// This file must be used under the terms of the CeCILL.
-->// This source file is licensed as described in the file COPYING, which
-->// you should have received as part of this distribution. The terms
-->// are also available at
-->// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
-->exec('builder.sce');
ilib_name =
libmex
Génère un fichier gateway
Génère un fichier loader
Génère un Makefile
add 1
ilib_gen_Make: Copie les fichiers de compilation (Makefile*, libtool...) vers TMPDIR
ilib_gen_Make: Copie libmex.c vers TMPDIR
ilib_gen_Make: Copie temptst.cpp vers TMPDIR
ilib_gen_Make: configure : GÃnÃre le Makefile.
ilib_gen_Make: Modification du Makefile dans TMPDIR.
Exécute le makefile
-->exec('loader.sce');
Bibliothèque partagée chargée.
Link done.
-->x=56;
-->y = square(x);
-->y
y =
!--error 10000
sci2exp : Cette fonctionnalité n'a pas encore été implémentée : Traduction d'une variable du type 295.
at line 83 of function sci2exp called by :
line 18 of function mlist2exp called by :
line 75 of function sci2exp called by :
line 36 of function %ce_string called by :
line 2 of function %ce_p called by :
y
-- How to reproduce the bug --
Created an attachment (id=1079)
derived from cppmex scilab example
step to reproduce the bug
-->exec('demo.sce')
-->y