SWIG Compatibility

Compatibility

SWIG is known to work on the following platforms :

Supported Languages

The following scripting languages were supported in the final SWIG 1.1 release. The following languages are also supported in SWIG 1.3.6 onwards. PHP support was added in SWIG 1.3.11.
Objective Caml (Ocaml) and Pike support was added in SWIG 1.3.14.
Support for C# and the Chicken scheme compiler was added in SWIG 1.3.18.
Support for Allegro CL and Modula-3 was added in SWIG-1.3.22.
Support for Lua, CLISP and Common Lisp with UFFI was added in SWIG-1.3.26.

Any newer versions of these languages should be assumed to be supported unless otherwise indicated. There is also SwigJS, a JavaScript module for SWIG and SWIGEiffel for Eiffel.

Compilation Requirements

SWIG is implemented in C and C++ and is distributed in source form. You will need a working C++ compiler (e.g. g++) to build SWIG and at least one of the supported scripting languages to use it (or else it isn't going to be very useful). SWIG does not depend upon any of the supported scripting languages for its own compilation. Finally, although SWIG is partly written in C++, a C++ compiler is not required to use SWIG--it works just fine with both ANSI C and C++.