Problem in wrapping classes for Scilab using SWIG

classic Classic list List threaded Threaded
2 messages Options
aashay aashay
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem in wrapping classes for Scilab using SWIG

Hello everyone,

I was trying to run this example. I wrote the exact code as given in the example and changed the module name to 'classes'. But I wasn't able to load the shared library in scilab. The commands I ran were:

$ swig -scilab -c++ classes.i
$ g++ -fPIC -c -I/usr/local/include/scilab  classes_wrap.cxx
$ g++ -shared classes_wrap.o -o libclasses.so


The error shown in scilab was the following :
https://codepaste.net/o1ziok
Also, among the examples that are already given with SWIG, 5 of them are giving same error. I am not sure if this a problem on Scilab side or SWIG side.

It would be great if someone can help me with this.

Thanks
Aashay

_______________________________________________
dev mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/dev
Simon Marchetto-2 Simon Marchetto-2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem in wrapping classes for Scilab using SWIG

Hello,

The issue is confirmed:

https://github.com/swig/swig/issues/994

The fix will be commited soon.

Please report any problem on Github next time, or on SWIG mailing lists, as you already did for other issues.

Thanks for your contribution.

Simon Marchetto


Le 29/05/2017 à 10:48, Aashay Singhal a écrit :
Hello everyone,

I was trying to run this example. I wrote the exact code as given in the example and changed the module name to 'classes'. But I wasn't able to load the shared library in scilab. The commands I ran were:

$ swig -scilab -c++ classes.i
$ g++ -fPIC -c -I/usr/local/include/scilab  classes_wrap.cxx
$ g++ -shared classes_wrap.o -o libclasses.so


The error shown in scilab was the following :
https://codepaste.net/o1ziok
Also, among the examples that are already given with SWIG, 5 of them are giving same error. I am not sure if this a problem on Scilab side or SWIG side.

It would be great if someone can help me with this.

Thanks
Aashay


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


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