SWIGing for fun and profit
Marc Hadley
Full Content


Abstract
SWIG is a freely available tool for generating multiple language bindings for existing C/C++ code. This paper discusses the use of SWIG to generate language bindings for Python, Perl and Java and shows how to embed code written in these languages into existing C/C++ applications. Examples include using a Java XSLT processor from C++, using Python to process SAX events generated by C++ and enabling Perl scripting of a large C++ class library.