/trunk/Examples/python/import_template/README
#! | 30 lines | 22 code | 8 blank | 0 comment | 0 complexity | 2df947ccf48e9f52c0845d0c315fa33d MD5 | raw file
1This example tests the %import directive and working with multiple modules. 2 3Use 'python runme.py' to run a test. 4 5Overview: 6--------- 7 8The example defines 4 different extension modules--each wrapping 9a separate C++ class. 10 11 base.i - Base class 12 foo.i - Foo class derived from Base 13 bar.i - Bar class derived from Base 14 spam.i - Spam class derived from Bar 15 16Each module uses %import to refer to another module. For 17example, the 'foo.i' module uses '%import base.i' to get 18definitions for its base class. 19 20If everything is okay, all of the modules will load properly and 21type checking will work correctly. Caveat: Some compilers, for example 22gcc-3.2.x, generate broken vtables with the inline methods in this test. 23This is not a SWIG problem and can usually be solved with non-inlined 24destructors compiled into separate shared objects/DLLs. 25 26Unix: 27----- 28- Run make 29- Run the test as described above 30