swig icon indicating copy to clipboard operation
swig copied to clipboard

SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.

Results 45 swig issues
Sort by recently updated
recently updated
newest added

An std::string passed as an argument to a function from matlab fails the type check when the string length is greater than 255 characters. The ```SWIG_Matlab_ConvertPtrAndOwn``` method returns error in...

Comment by @wsfulton: > C tests in test-suite fail (I'm using Octave-4.0.0), eg: checking matlab testcase arrays arrays_wrap.c: In function ‘SWIG_Matlab_ConvertPacked’: arrays_wrap.c:918:1: error: parameter name omitted SWIG_Matlab_ConvertPacked(mxArray* /*pm*/, void* /*ptr*/,...

enhancement

Comment by @wsfulton: > The normal SWIG warning system has not been used (there are no warning numbers, you could call Swig_warning), eg: Warning: invalid MATLAB symbol '_FooImpl' () Symbols...

enhancement

Request from @wsfulton: > Can you remove --enable-octave-for-matlab from configure.ac for testing and instead automate this, so search for matlab then octave. Thus configure will find either, but prefer matlab....

enhancement

http://www.advanpix.com/2016/02/14/short-and-informative-error-messages-from-mex/

I have an issue in building SWIG with MinGW: ``` $ ./autogen.sh + test -d Tools/config + aclocal -I Tools/config + autoheader + automake --add-missing --copy --force-missing Useless use of...

Octave 4.2 has been released and includes "mexCallMATLABWithTrap". This will allow removing some (incomplete) workarounds in the module. cf. https://www.gnu.org/software/octave/NEWS-4.2.html

In my C++ code, I sometimes return std::vector. That end up getting wrapped in a DoubleVector from the swig typemap, but for the life of me, I can't figure out...

The functions subsref and subsasgn can moved from the SwigRef base class to the classes inheriting directly from SwigRef. That way, they can be created only when needed, meaning better...