swig.1   [plain text]

.\"                                      Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH SWIG 1 2004-05-22
.\" Please adjust this date whenever revising the manpage.

swig \- Simplified Wrapper and Interface Generator
.B swig
.RI [ options ] " file"


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

.SS Target Language Options:
.B \-chicken
Generate CHICKEN wrappers
.B \-csharp
Generate C# wrappers
.B \-guile
Generate Guile wrappers
.B \-java
Generate Java wrappers
.B \-mzscheme
Generate Mzscheme wrappers
.B \-ocaml
Generate Ocaml wrappers
.B \-perl
Generate Perl wrappers.
.B \-php
Generate PHP wrappers
.B \-pike
Generate Pike wrappers
.B \-python
Generate Python wrappers
.B \-ruby
Generate Ruby wrappers
.B \-sexp
Generate Lisp S-Expressions wrappers
.B \-tcl
Generate Tcl wrappers
.B \-xml
Generate XML wrappers.

.SS General Options

.B \-c++
Enable C++ processing
.B \-co
Check a file out of the SWIG library
.B \-dirprot
Turn on wrapping of protected members for director classes
.BI \-D symbol 
Define a symbol \fIsymbol\fR (for conditional compilation)
.B \-E
Preprocess only, does not generate wrapper code
.B \-fcompact
Compile in compact mode
.B \-fvirtual
Compile in virtual elimination mode
.B \-Fstandard
Display error/warning messages in commonly used format
.B \-Fmicrosoft
Display error/warning messages in Microsoft format
.B \-help
Show a summary of supported options and especially of supported
options for the selected language.
.BI \-I dir
Look for SWIG files in \fIdir\fR
.B \-ignoremissing
Ignore missing include files
.B \-importall
Follow all #include statements as imports
.B \-includeall
Follow all #include statements
.BI \-l ifile
Include SWIG library file \fIifile\fR
.B \-M
List all dependencies 
.B \-MM
List dependencies, but omit files in SWIG library
.B \-makedefault
Create default constructors/destructors (the default)
.BI "\-module " name
Set module name to \fIname\fR
.B \-nocontract
Turn off contract checking 
.B \-nodefault
Do not generate constructors/destructors
.B \-nodirprot
Do not wrap director protected members
.B \-noexcept
Do not wrap exception specifiers
.B \-noextern
Do not generate extern declarations
.B \-noruntime
Do not include SWIG runtime code
.BI "\-o " outfile
Set name of the output file to \fIoutfile\fR
.BI "\-outdir " dir
Set language specific files output directory
.B \-runtime
Make the runtime support code globally visible.
.B \-small
Compile in virtual elimination & compact mode
.B \-swiglib
Report location of SWIG library and exit
.B \-v
Run in verbose mode
.B \-version
Print SWIG version number
.B \-Wall
Enable all warning messages
.B \-Wallkw
Enable warning messages for all the languages keywords
.B \-Werror
Force to treat the warnings as errors
.BI "\-w " n
Suppress warning number \fIn\fR
SWIG was originally created by David Beazley. For up-to-date information
about authors and contributors please check http://www.swig.org/guilty.html.
This manual page was written by Torsten Landschoff <torsten@debian.org>
for the Debian project (but may be used by others).