Questions tagged [swig]

SWIG is an interface compiler that connects programs written in C and C++ with scripting languages such as Perl, Python, Ruby, and Tcl.

SWIG is typically used to parse C/C++ interfaces and generate the 'glue code' required for the target language to call into the C/C++ code. SWIG can also export its parse tree in the form of XML and Lisp s-expressions. SWIG is free software and the code that SWIG generates is compatible with both commercial and non-commercial projects.

For information about the features of SWIG and the supported languages see: http://www.swig.org/compare.html

One of many projects using SWIG to generate libraries for the above languages is Subversion. Other projects listed here.

Documentation:

3063 questions
1
vote
1 answer

node-gyp build gives unresolved external symbol error

I'm trying to access c++ code form javascript and for which I used swig. Now when i try to run the command node-gyp configure build I got the below errors. Can anyone help me here and tell why this is…
1
vote
2 answers

A SWIG multi-argument typemap apply to functions, but not to the constructor if there's multiple constructors

I'm trying to make a quarter float type in C++ and wrap it to Python using SWIG. This is a work in progress. The problem is %typemap(in) (int dim_count, int* shape) does not apply to the constructor if there's more than one constructor. If I use…
user7387072
1
vote
0 answers

Split C++ nested templates

I try to use my C++ library in Java project via SWIG. But it seems that SWIG can't understand nested templates. So, this is the valid C++ code which I need to use, but SWIG can't build it: template