c++ swig python

Oleg Seifert misterxx at uni-koblenz.de
Mon Jan 13 09:32:31 EST 2003


Hallo,

ich habe eine einfache Klasse in c++ geschrieben.
Dann habe ich mit Hilfe von SWIG aus dieser Klasse einen Python-Modul 
(dll-Bibliothek) erstellt. [testfiles.dll + testfiles.lib]

Ich habe diese Bibliothek mir einer kleiner c++-Anwendung testen können.
Aber wenn ich diesen Modul in Python importiere ("import testfiles") 
kriege ich die Fehlermeldung:

 >>> import testfiles
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: dynamic module does not define init function (inittestfiles)
 >>>

Woran könnte es liegen ? Was mache ich falsch ?

Danke im Voraus.

mfg,
   Oleg





More information about the Python-list mailing list