Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

swig(1) [redhat man page]

swig(1) 					    Simplified Wrapper and Interface Generator						   swig(1)

NAME
swig - produce scripting language wrapper code from an interface specification file SYNOPSIS
swig [ options ] file.i DESCRIPTION
swig generates wrapper code needed to integrate C,C++, and Objective-C functions and variables with Tcl, Perl, Python, and Guile and pro- duces documentation. Consult the SWIG user manual for more details. OPTIONS
The following major options are available. More options are available by typing 'swig -help'. -tcl Generate Tcl wrappers -tcl8 Generate Tcl8.0 wrappers -perl5 Generate Perl5 wrappers -python Generate Python wrappers -perl4 Generate Perl4 wrappers -guile Generate Guile-iii wrappers -dascii Generate ASCII format documentation -dlatex Generate LaTeX format documentation -dhtml Generate HTML format documentation -dnone Generate no documentation -I incdir Look in incdir for SWIG related include files -llibfile Append a SWIG library file to the input. -D symbol Define a symbol symbol for conditional compilation. -v verbose mode (perhaps overly verbose) -version Print SWIG version information -nocoment Ignore all comments in interface file -strict n Set pointer type-checking strictness to n n may be 0, 1 or 2. -o outfile Change the name of the output file. -c Do not include SWIG runtime functions (used for creating multi-module packages). -c++ Enable special processing for C++. -objc Enable Objective-C parsing. -make_default Generate default constructors and destructors. -co Check a file out of the SWIG library. -ci Check a file into the SWIG library (must have write permission) -stat Display statistics. -help Print all of the available command line options. INTERFACE FILES
The interface file is specified on the swig command line as the file to operate on. You may specify only one file on the command line. (See the include directive in the user's manual for ways around this.) As input, an interface file (typically with a .i suffix) must be given. A minimal specification of this file is as follows: %module mymodule %{ /* Include your headers here */ %} /* List variables and function prototypes in ANSI C syntax */ For example : %module example %{ #include "my_header.h" %} extern int My_variable; extern double foo(double a, double b); extern void bar(char *); OUTPUT
Given the input "file.i". swig produces an output file called "file_wrap.c" (You can override this using the -o option). This file should be compiled with the C/C++ compiler and linked with the rest of your code. RESOURCES
SWIG documentation and updates are available at http://www.cs.utah.edu/~beazley/SWIG AUTHOR
Man page written by Patrick Tullmann. SWIG is all Dave's. (Dave Beazley, that is.) LIMITATIONS
Hah! Bring it all on. BUGS
None reported at this time. VERSION
SWIG 1.1 SEE ALSO
Tcl(n), python(1), perl(1) SWIG 1.1 June 23 1997 swig(1)

Check Out this Related Man Page

IAC(1)							       PolyORB documentation							    IAC(1)

NAME
iac - PolyORB's IDL-to-Ada compiler SYNOPSIS
iac opts file [-cppargs args] DESCRIPTION
iac is an IDL-to-Ada compiler, compliant with version 1.2 of the "Ada Language Mapping Specification" produced by the OMG. OPTIONS
iac accepts the following options: -E Preprocess only. -k Keep temporary files. -p Produce source on standard output. -o DIR Specify output directory. -dm Generate debug messages when analyzing scopes -df Dump the frontend tree (the IDL tree) -cppargs ARGS Pass ARGS to the C++ preprocessor. -I dir Shortcut for -cppargs -I dir. -nocpp Do not preprocess input -<lang> Generate code for a supported language types Generate a list of all types present in the IDL file -p Print the list generate ada Generate Ada source code -i Generate implementation template. -c Generate client side code. -s Generate server side code. -d Generate delegation package. (defunct) -ir Generate code for interface repository.(defunct) -noir Don't generate code for interface repository (default). -hc Using perfect minimal hash tables in skeletons and minimize CPU time -hm Using perfect minimal hash tables in skeletons and minimize memory space -rs Use the SII/SSI to handle requests -rd Use the DII/DSI to handle requests (default) -da Dump the Ada tree -db Generate only the package bodies -ds Generate only the package specs -dw Output the withed entities -dt Output tree warnings -di Generate code for imported entities idl Dump parsed IDL file -b n Base to output integer literal As a default (zero) use base from input -e Expand IDL Tree -df Dump IDL Tree (may be used in conjunction with -e to dump the expanded IDL tree) -di Output IDL code of imported entities (may be used in conjunction with -e to output the expanded IDL code) EXIT STATUS
iac returns one of the following values upon exit: 0 Successful completion 1 Usage error 2 Illegal IDL specification AUTHORS
The PolyORB team, polyorb-devel@lists.adacore.com. SEE ALSO
The PolyORB WWW page, http://libre.adacore.com/polyorb/ PolyORB team April 26, 2007 IAC(1)
Man Page