swig1
Simplified wrapper and interface generator
Usage
swig [options]
file
Overview
The swig command is used to create wrapper code to connect C and C++ code to scripting languages like Perl, Python, etc. from the definition of the interface. For detailed information on writing those interface definitions please refer to /usr/share/doc/swig-doc/Manual/index.html from the swig-doc package. This manpage concentrates on explaining the invocation of the swig command.
Options
Target Language Options:
-
-chicken -
Generate CHICKEN wrappers
-
-csharp -
Generate C# wrappers
-
-guile -
Generate Guile wrappers
-
-java -
Generate Java wrappers
-
-mzscheme -
Generate Mzscheme wrappers
-
-ocaml -
Generate Ocaml wrappers
-
-perl -
Generate Perl wrappers.
-
-php -
Generate PHP wrappers
-
-pike -
Generate Pike wrappers
-
-python -
Generate Python wrappers
-
-ruby -
Generate Ruby wrappers
-
-sexp -
Generate Lisp S-Expressions wrappers
-
-tcl -
Generate Tcl wrappers
-
-xml -
Generate XML wrappers.
General Options
-
-c++ -
Enable C++ processing
-
-co -
Check a file out of the SWIG library
-
-dirprot -
Turn on wrapping of protected members for director classes
-
-Dsymbol -
Define a symbol symbol (for conditional compilation)
-
-E -
Preprocess only, does not generate wrapper code
-
-fcompact -
Compile in compact mode
-
-fvirtual -
Compile in virtual elimination mode
-
-Fstandard -
Display error/warning messages in commonly used format
-
-Fmicrosoft -
Display error/warning messages in Microsoft format
-
-help -
Show a summary of supported options and especially of supported options for the selected language.
-
-Idir -
Look for SWIG files in dir
-
-ignoremissing -
Ignore missing include files
-
-importall -
Follow all #include statements as imports
-
-includeall -
Follow all #include statements
-
-lifile -
Include SWIG library file ifile
-
-M -
List all dependencies
-
-MM -
List dependencies, but omit files in SWIG library
-
-makedefault -
Create default constructors/destructors (the default)
-
-module name -
Set module name to name
-
-nocontract -
Turn off contract checking
-
-nodefault -
Do not generate constructors/destructors
-
-nodirprot -
Do not wrap director protected members
-
-noexcept -
Do not wrap exception specifiers
-
-noextern -
Do not generate extern declarations
-
-noruntime -
Do not include SWIG runtime code
-
-o outfile -
Set name of the output file to outfile
-
-outdir dir -
Set language specific files output directory
-
-runtime -
Make the runtime support code globally visible.
-
-small -
Compile in virtual elimination & compact mode
-
-swiglib -
Report location of SWIG library and exit
-
-v -
Run in verbose mode
-
-version -
Print SWIG version number
-
-Wall -
Enable all warning messages
-
-Wallkw -
Enable warning messages for all the languages keywords
-
-Werror -
Force to treat the warnings as errors
-
-w n -
Suppress warning number n
Releases
9 releases since Debian 2.0 (Hamm); the text changed 2 times.
-D since Debian 3.1 (Sarge);
-E since Debian 3.1 (Sarge);
-Fmicrosoft since Debian 3.1 (Sarge);
-Fstandard since Debian 3.1 (Sarge);
-I since Debian 3.1 (Sarge);
-M since Debian 3.1 (Sarge);
-MM since Debian 3.1 (Sarge);
-Wall since Debian 3.1 (Sarge);
-Wallkw since Debian 3.1 (Sarge);
-Werror since Debian 3.1 (Sarge);
-chicken since Debian 3.1 (Sarge);
-csharp since Debian 3.1 (Sarge);
-dirprot since Debian 3.1 (Sarge);
-fcompact since Debian 3.1 (Sarge);
-fvirtual since Debian 3.1 (Sarge);
-ignoremissing since Debian 3.1 (Sarge);
-importall since Debian 3.1 (Sarge);
-includeall since Debian 3.1 (Sarge);
-java since Debian 3.1 (Sarge);
-makedefault since Debian 3.1 (Sarge);
-module since Debian 3.1 (Sarge);
-mzscheme since Debian 3.1 (Sarge);
-nocontract since Debian 3.1 (Sarge);
-nodefault since Debian 3.1 (Sarge);
-nodirprot since Debian 3.1 (Sarge);
-noexcept since Debian 3.1 (Sarge);
-noextern since Debian 3.1 (Sarge);
-noruntime since Debian 3.1 (Sarge);
-o since Debian 3.1 (Sarge);
-ocaml since Debian 3.1 (Sarge);
-outdir since Debian 3.1 (Sarge);
-perl since Debian 3.1 (Sarge);
-php since Debian 3.1 (Sarge);
-pike since Debian 3.1 (Sarge);
-ruby since Debian 3.1 (Sarge);
-runtime since Debian 3.1 (Sarge);
-sexp since Debian 3.1 (Sarge);
-small since Debian 3.1 (Sarge);
-swiglib since Debian 3.1 (Sarge);
-w since Debian 3.1 (Sarge);
-xml since Debian 3.1 (Sarge).
-c until Debian 3.0 (Woody);
-ci until Debian 3.0 (Woody);
-dascii until Debian 3.0 (Woody);
-dhtml until Debian 3.0 (Woody);
-dlatex until Debian 3.0 (Woody);
-dnone until Debian 3.0 (Woody);
-make_default until Debian 3.0 (Woody);
-nocoment until Debian 3.0 (Woody);
-objc until Debian 3.0 (Woody);
-perl4 until Debian 3.0 (Woody);
-perl5 until Debian 3.0 (Woody);
-stat until Debian 3.0 (Woody);
-tcl8 until Debian 3.0 (Woody).