File: README

package info (click to toggle)
swig 1.1p5-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 9,448 kB
  • ctags: 5,025
  • sloc: cpp: 21,599; ansic: 13,333; yacc: 3,297; python: 2,794; makefile: 2,197; perl: 1,984; tcl: 1,583; sh: 736; lisp: 201; objc: 143
file content (37 lines) | stat: -rw-r--r-- 1,405 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
*** Disclaimer *** This is an advanced example that may not work in
the same way on all machines.  Currently the makefile is set up for
Linux systems.

Please read the 'Advanced Topics' of the SWIG User's guide
before proceeding with this example.

This example tests the SWIG Runtime library.   A common problem
when working with C++ systems is the sharing of run-time type
information.   In this example, we run SWIG with the '-c' option
and consolidate the run-time type checker into a single library
shared between all SWIG generated modules.

Typing 'make' builds three independent SWIG modules corresponding
to C++ classes and uses dynamic loading.  Each module is linked
against the shared library 'libswigtcl.so' that is used to 
provide the SWIG runtime system.  

Typing 'make static' builds three independent SWIG modules, but
statically links them together into a single executable (this
is done with the package.i interface file).  The final executable
is linked against the library 'libswigtcl.a'.

To see if you have done everything correctly, try running
the script 'test.tcl'.  If it reports no errors, things are
working correctly.

You are encouraged to play with this example. A good test to try
is to remove the '-c' option passed to SWIG and recompile.
If you do this, you will find that the test script no longer
works (figuring out why is left as an exercise to the reader).