Problem on SWIG/C++/Python

Graham Dumpleton grahamd at dscpl.com.au
Wed Sep 26 05:36:41 EDT 2001


clio <wangye1 at auburn.edu> wrote in message news:<3BB0A7DD.5000908 at auburn.edu>...
> ImportError: ./clientapimodule.so: undefined symbol: __builtin_new
>  >>>

Ensure you create the shared library using g++ and not gcc, ie.,

  /usr/bin/g++ -shared -o clientapimodule.so *.o

If you don't do this, the C++ run time library will not be referenced
by the library and dragged in automatically when the .so is loaded.

If you are already using g++ to create the shared, not sure.



More information about the Python-list mailing list