xref: /swig/
NameDateSize

..16-Mar-201612 KiB

.gitattributes11-Feb-201454

.gitignore27-Apr-20153.4 KiB

.travis.yml12-Oct-20156.9 KiB

ANNOUNCE07-Aug-20151.3 KiB

appveyor.yml09-Dec-20152.8 KiB

autogen.sh11-Feb-2014586

CCache/27-Apr-20154 KiB

CHANGES07-Aug-2015930.8 KiB

CHANGES.current14-Dec-20154.9 KiB

configure.ac30-Nov-201590.5 KiB

COPYRIGHT16-Mar-20156.3 KiB

debian/11-Feb-20144 KiB

Doc/11-Feb-20144 KiB

Examples/28-Sep-20154 KiB

INSTALL11-Feb-20149 KiB

Lib/30-Nov-20154 KiB

LICENSE11-Feb-20141 KiB

LICENSE-GPL11-Feb-201434.3 KiB

LICENSE-UNIVERSITIES11-Feb-20144.5 KiB

Makefile.in10-Sep-201520.7 KiB

preinst-swig.in10-Sep-2015238

README07-Aug-20155 KiB

RELEASENOTES07-Aug-201516.5 KiB

Source/02-Feb-20154 KiB

swig.spec.in11-Feb-20142.5 KiB

TODO11-Feb-201412.8 KiB

Tools/14-Dec-20154 KiB

vms/11-Feb-20144 KiB

Win/11-Feb-20144 KiB

README

1SWIG (Simplified Wrapper and Interface Generator)
2
3Version: 3.0.8 (in progress)
4
5Tagline: SWIG is a compiler that integrates C and C++ with languages
6         including Perl, Python, Tcl, Ruby, PHP, Java, C#, D, Go, Lua,
7         Octave, R, Scheme (Guile, MzScheme/Racket, CHICKEN), Scilab,
8         Ocaml, Modula-3, Common Lisp (CLISP, Allegro CL, CFFI, UFFI)
9         and Pike. SWIG can also export its parse tree into XML and
10         Lisp s-expressions.
11
12SWIG reads annotated C/C++ header files and creates wrapper code (glue
13code) in order to make the corresponding C/C++ libraries available to
14the listed languages, or to extend C/C++ programs with a scripting
15language.
16
17Up-to-date SWIG related information can be found at
18
19        http://www.swig.org
20
21A SWIG FAQ and other hints can be found on the SWIG Wiki:
22
23        http://www.dabeaz.com/cgi-bin/wiki.pl
24
25License
26=======
27Please see the LICENSE file for details of the SWIG license. For
28further insight into the license including the license of SWIG's
29output code, please visit
30
31        http://www.swig.org/legal.html
32
33Release Notes
34=============
35Please see the CHANGES.current file for a detailed list of bug fixes and
36new features for the current release. The CHANGES file contains bug fixes
37and new features for older versions. A summary of changes in each release
38can be found in the RELEASENOTES file.
39
40Documentation
41=============
42The Doc/Manual directory contains the most recent set of updated
43documentation for this release. The documentation is available in
44three different formats, each of which contains identical content.
45These format are, pdf (Doc/Manual/SWIGDocumentation.pdf), single
46page html (Doc/Manual/SWIGDocumentation.html) or multiple page html
47(other files in Doc/Manual). Please select your chosen format and
48copy/install to wherever takes your fancy.
49
50There is some technical developer documentation available in the
51Doc/Devel subdirectory.  This is not necessarily up-to-date, but it
52has some information on SWIG internals.
53
54Documentation is also online at http://www.swig.org/doc.html.
55
56Backwards Compatibility
57=======================
58The developers strive their best to preserve backwards compatibility
59between releases, but this is not always possible as the overriding
60aim is to provide the best wrapping experience. Where backwards
61compatibility is known to be broken, it is clearly marked as an
62incompatibility in the CHANGES and CHANGES.current files.
63
64See the documentation for details of the SWIG_VERSION preprocessor
65symbol if you have backward compatibility issues and need to use more
66than one version of SWIG.
67
68Installation
69============
70Please read the Doc/Manual/Preface.html#Preface_installation for
71full installation instructions for Windows, Unix and Mac OS X.
72The INSTALL file has generic build and installation instructions for
73Unix users.
74
75Testing
76=======
77The typical 'make -k check' can be performed on Unix operating systems.
78Please read Doc/Manual/Preface.html#Preface_testing for details.
79
80Examples
81========
82The Examples directory contains a variety of examples of using SWIG
83and it has some browsable documentation.  Simply point your browser to
84the file "Example/index.html".
85
86The Examples directory also includes Visual C++ project 6 (.dsp) files for
87building some of the examples on Windows. Later versions of Visual Studio
88will convert these old style project files into a current solution file.
89
90Known Issues
91============
92There are minor known bugs, details of which are in the bug tracker, see
93http://www.swig.org/bugs.html.
94
95Troubleshooting
96===============
97In order to operate correctly, SWIG relies upon a set of library
98files.  If after building SWIG, you get error messages like this,
99
100    $ swig foo.i
101    :1. Unable to find 'swig.swg'
102    :3. Unable to find 'tcl8.swg'
103
104it means that SWIG has either been incorrectly configured or
105installed.  To fix this:
106
107    1.  Make sure you remembered to do a 'make install' and that
108        the installation actually worked.  Make sure you have
109        write permission on the install directory.
110
111    2.  If that doesn't work, type 'swig -swiglib' to find out
112        where SWIG thinks its library is located.
113
114    3.  If the location is not where you expect, perhaps
115        you supplied a bad option to configure.  Use
116        ./configure --prefix=pathname to set the SWIG install
117        location.   Also, make sure you don't include a shell
118        escape character such as ~ when you specify the path.
119
120    4.  The SWIG library can be changed by setting the SWIG_LIB
121        environment variable.  However, you really shouldn't
122        have to do this.
123
124If you are having other troubles, you might look at the SWIG Wiki at
125http://www.dabeaz.com/cgi-bin/wiki.pl.
126
127Participate!
128============
129Please report any errors and submit patches (if possible)!  We only
130have access to a limited variety of hardware (Linux, Solaris, OS-X,
131and Windows). All contributions help.
132
133If you would like to join the SWIG development team or contribute a
134language module to the distribution, please contact the swig-devel
135mailing list, details at http://www.swig.org/mail.html.
136
137
138 -- The SWIG Maintainers
139
140