undefined symbols when embedding python
Dave Marotti
landshark at verticaladdiction.net
Thu Feb 14 01:24:36 EST 2002
Hello,
I'm using SIP to wrap a C++ class (very basic) and then embed the python
interpretor in another C++ program. From the new C++ program I import the
wrapped c++ class and make some python calls.
Using SIP to wrap the C++ class worked fine.
Using the new pythong class in the python interpretor via the python executable
works fine.
However, when I try to run my C++ program which contains the embedded python
interpretor, any call which imports my wrapped C++ class causes undefined
symbols:
ImportError: ./libtestwrapc.so: undefined symbol: Py_InitModule4
I've linked my embedded C++ program to libpython2.0.a.
I've toyed with different linkings, but now I'm completely stumped.
Any help would be appreciated. Thanks.
-dave
--
+-----------------------------+----------------------------------------------+
| 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