Aashay Singhal
2017-03-31 16:13:27 UTC
Hello all!
This is in follow up to my previous mail. I found out that swig expects all
the header files of scilab in a single directory i.e.
'/usr/local/include/scilab' which is not the case. The header files
required to compile the example_wrap.c file are in following directories :
1) ~/scilab/modules/output_stream/includes
2) ~/scilab/modules/api_scilab/includes
3) ~/scilab/modules/core/includes
4) ~/scilab/modules/localization/includes
5) ~/scilab/modules/ast/includes/types
6) ~/scilab/modules/ast/includes/ast
7) ~/scilab/modules/mexlib/includes
This is assuming that scilab is installed in the home directory.
All these files need to be written with a -I flag while doing gcc. So, I
would suggest that the documnetation (http://www.swig.org/Doc3.0/Scilab.html)
must be changed according to this. Also, in the examples the make file will
need to be updated. Looking forward to fix this.
Thanking you
Regards,
Aashay
This is in follow up to my previous mail. I found out that swig expects all
the header files of scilab in a single directory i.e.
'/usr/local/include/scilab' which is not the case. The header files
required to compile the example_wrap.c file are in following directories :
1) ~/scilab/modules/output_stream/includes
2) ~/scilab/modules/api_scilab/includes
3) ~/scilab/modules/core/includes
4) ~/scilab/modules/localization/includes
5) ~/scilab/modules/ast/includes/types
6) ~/scilab/modules/ast/includes/ast
7) ~/scilab/modules/mexlib/includes
This is assuming that scilab is installed in the home directory.
All these files need to be written with a -I flag while doing gcc. So, I
would suggest that the documnetation (http://www.swig.org/Doc3.0/Scilab.html)
must be changed according to this. Also, in the examples the make file will
need to be updated. Looking forward to fix this.
Thanking you
Regards,
Aashay