Home

Perl extension building with SWIG


Author(s) : Dominique Dumont David Fletcher David M. Beazley Hewlett Packard, 
Publisher : N/A
Publication Date : 1998
ISSN : N/A
Abstract : SWIG (Simplified Wrapper and Interface Generator) is a freely available tool that integrates Perl, Python, Tcl, and other scripting languages with programs written in C, C++, and Objective-C. This paper provides an introduction to SWIG and shows how it can be used to construct Perl extension modules. In addition, a number of applications in which SWIG has been utilized are described. While SWIG is similar to other Perl extension building tools such as xsubpp and h2xs, SWIG has a number of unique features that help simplify the task of creating Perl extension modules. Many of these features are described as well as limitations and future directions. This paper is primarily intended for developers who are interested in combining Perl with applications written in C or C++ as well as current SWIG users who are interested in learning more about some of SWIG's advanced features. 1,