undefined symbols when embedding python

Dave Marotti landshark at verticaladdiction.net
Thu Feb 14 15:36:09 CET 2002

Hey Martin,

Yes, the extension module is in a shared library.

Most of this is all pretty new to me, so for whatever reason, the approach of
extension library + separate embedded executable seemed more natural to me.

I'll give both ways a shot (extended module + embedded, and embedded with the
wrapper directly in it).  Now that I think of it, I cannot think of any reason
not to have the wrapped classes directly in the embedded app.

Thanks for the tips!


>I take it that the extension module is in a shared library? (which is
>kind of surprising, because in an embedded application, you'ld
>normally want all extension modules to be linked into the application,
>instead of having them as separate files on disk).
>I also take it that you use GCC on Linux? In that case, you need to
>export the symbols from the executable to the shared library, using
>-Wl,--export-dynamic (see ld(1) for details).
>Of course, this problem would also go away if you would incorporate
>the extension into the application.

| Dave Marotti                | Looking for a Visio alternative for *nix?    |
| lndshark ! speakeasy net    | Kivio : http://thekompany.com/projects/kivio |
| I just don't trust anything | I suppose that in a few more hours I will    |
| that bleeds for 5 days and  | sober up. That's such a sad thought. I think |
| doesn't die. - Mr. Garrison | I'll have a few more drinks to prepare myself|

More information about the Python-list mailing list