I don't think so. The example in the book is for IRIX, the template for Linux is at http://www.dabeaz.com/cgi-bin/wiki.pl?SwigFaqLinuxSharedLibraries . This is mentioned explicitly in the "Building a Python Module" section at http://www.swig.org/tutorial.html .

Thank you,
Nick Vlad

Josh Cherry <jcherry@ncbi.nlm.nih.gov> wrote:

On Mon, 31 Jul 2006, Ioan Vlad wrote:

> ld -shared example.o example_wrap.o -o example.so
Should be _example.so, shouldn't it?