SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. http://www.swig.org
Find a file
Thien-Thi Nguyen e7f251acde Add simple instructions for making an example do double-duty
as part of the testing framework.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@826 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-04 02:27:18 +00:00
Doc Updated section on Guile. 2000-08-30 20:13:46 +00:00
Examples Add simple instructions for making an example do double-duty 2000-09-04 02:27:18 +00:00
Lib Updated Guile modules. 2000-09-03 20:06:32 +00:00
Misc *** empty log message *** 2000-01-20 04:24:20 +00:00
Runtime Fixed makefile for new type-checker 2000-09-02 16:25:10 +00:00
Source Fixed pointer to function bug. 2000-09-04 02:16:17 +00:00
Tools Added RPM spec file 2000-08-15 20:33:54 +00:00
Win Added 2000-02-04 17:18:04 +00:00
.cvsignore Conditionaly compile experimental code with --enable-experiment 2000-01-30 15:39:55 +00:00
CHANGES *** empty log message *** 2000-09-04 01:54:30 +00:00
configure.in Added Python1.6 check 2000-09-01 22:02:56 +00:00
install-sh *** empty log message *** 2000-01-12 03:01:06 +00:00
LICENSE *** empty log message *** 2000-01-12 03:34:50 +00:00
Makefile.in (check-c++-examples): New target. 2000-08-31 19:23:39 +00:00
mkinstalldirs Initial revision. 2000-03-04 00:13:31 +00:00
NEW *** empty log message *** 2000-09-04 00:39:44 +00:00
README Removed mzscheme comment. 2000-09-01 20:56:29 +00:00
TODO *** empty log message *** 2000-08-06 03:51:59 +00:00
VERSION Bumped version number 2000-03-13 17:25:11 +00:00

SWIG (Simplified Wrapper and Interface Generator)

Version: 1.3 (alpha)

$Header$

Tagline: SWIG is a compiler that integrates C, C++, and Objective-C
         with scripting languages including Perl, Python, Tcl, Guile,
         and Ruby. 

This distribution represents work in progress towards building a new
SWIG release.  The guilty parties working on this are:

 Dave Beazley (beazley@cs.uchicago.edu)                 (SWIG core)
 Loic Dachary (loic@ceic.com)                           (Perl5)
 Harco de Hilster (Harco.de.Hilster@ATComputing.nl)     (Java)
 Thien-Thi Nguyen (ttn@glug.org)                        (Testing/Misc)
 Masaki Fukushima (fukusima@goto.info.waseda.ac.jp)     (Ruby)
 Matthias Köppe (mkoeppe@saturn.Math.Uni-Magdeburg.DE)  (Guile)

Past contributors (currently incomplete):

 Dustin Mitchell, Ian Cooke, Catalin Dumitrescu, Baran Kovuk, Gary Holt,
 David Fletcher.
 
***********************************************************************
*****       IMPORTANT NOTICE -- READ THIS NOW (OR ELSE)           *****
***********************************************************************

If you downloaded SWIG as a prepackaged release such as SWIG1.3a4, be
advised that this distribution represents a snapshot of the most
"stable" part of the SWIG CVS repository.  As this is an unstable
release, there is a pretty good chance that a number of features are
broken or under repair.  Currently, SWIG is undergoing a large
redevelopment effort in which it is being converted from C++ to ANSI C
and restructured to be more extensible.  As a result, the source code
is very disorganized at the moment. The SWIG1.3 series of releases
should be viewed as transitional releases leading to the eventual
release of SWIG2.0. First-time users should probably start with
SWIG1.1p5 which is significantly more stable (and includes a wider
range of documentation and examples).

*** WE NEED YOUR HELP! ***

Please report any errors and submit patches (if possible)!  Not only
are we making radical changes to the system, we only have access to a
limited variety of hardware (Linux, Solaris, and Windows). All
contributions help.

*** Backwards Compatibility ***

Although we are making every attempt preserve backwards compatibility
with interfaces written for SWIG1.1, SWIG1.3 incorporates a number of
very substantial modifications to things such as type handling,
typemaps, and wrapper code generation.  Therefore, if you are making
extensive use of advanced SWIG features, interfaces written for
SWIG1.1 may not work.  We apologize for the inconvenience, but these
changes are needed in order to remove a variety of annoying "features"
of SWIG1.1.

In addition, SWIG1.3 makes no attempt to be compatible with SWIG1.1 at
the C++ API level so language modules written for SWIG1.1 will most
definitely not work with this release.

What's New?
===========
Here are the most notable changes (so far):

   - SWIG now has a full C preprocessor.

   - Code generation for the Tcl and Python modules has been
     substantially improved both in terms of size and runtime
     efficiency (Perl5 is coming along too).

   - Java module is now included.

   - The Guile module is stable. It represents C pointers as smobs and
     supports the Guile module system and exceptions.

   - Ruby and mzscheme modules added.

   - A lot of minor bug fixes and cleanup.

Here are a few missing features

   - The SWIG1.1 documentation system is gone and hasn't been
     replaced yet.  This is on the long-term to-do list.

   - The Tcl7.x and Perl4 modules are deprecated and no longer
     included.

   - A wide variety of old SWIG command-line options and
     obscure features are gone.

What's Broken?
==============

   - The Java module is broken and temporarily unavailable (SWIG1.3a4).
  
   - Objective C support doesn't work right now.  No ETA as to
     when it will return.

   - SWIG requires an ANSI C compiler.

   - A number of low-level data structures have been converted
     to C.  Since things haven't yet been fully tested, there's
     a chance that unusual corner cases might cause SWIG to crash.
     If so, please send us a debugger traceback if possible.

   - The CHANGES file describes in some detail all of the important
     changes that have been made to the system.  Experienced
     users would be advised to read this.

Installation
============
To build and install SWIG, simply type the following:

     % ./configure
     % make
     % make install

In addition, if you need to build the runtime libraries, type
the following before doing the 'make install' step above.

     % make runtime

If you don't know what the runtime libraries are, don't worry
about this step.

The Examples directory contains a few examples of using SWIG.

Notes:

(1) If you checked the code out via CVS, you will have to run autoconf
    before typing 'configure.'  In addition, a full build of SWIG requires
    the use of bison.

(2) If you are using Windows, the easiest way to install and build
    SWIG is to use the Cygwin package (http://sourceware.cygnus.com/cygwin/).
    Note: Even if you build SWIG using Cygwin, the easier way to
    actually use SWIG on Windows is to build your extensions using Visual C++.
    The SWIG1.1p5 distribution also contains a number of examples configured
    to work with Visual C++ (most of which should also work with SWIG1.3).

Examples
========
The Examples directory contains a variety of new examples and it has some
browsable documentation.  Simply point your browser to the file 
"Example/index.html".

Documentation
=============
No documentation is currently included in this release.  However, most
of the documentation for SWIG1.1 still applies.  This can be obtained
on http://www.swig.org.

Participate!
============
We are looking for people who want to join the effort of getting this
next release off the ground.  Please send me email for details.

-- Dave (beazley@cs.uchicago.edu)


Developer Information
=====================
The primary goal of future development is to make SWIG more modular,
extensible, and easier to maintain.  To this end, the source code has
been consolidated and reorganized with the Source directory.  For more
information, please see Doc/internals.html.