[Cython] cython 0.15 breaks callback code.

Brett Calcott brett.calcott at gmail.com
Wed Sep 21 11:54:39 CEST 2011


Hi. I've just reverted to 0.14.1 because 0.15 breaks code that implements a
cpp callback in python. It seems to be a name-mangling problem.

I've attached a short test case that shows the problem. They both compile
fine on 14.1 and 15. But if I try and run the 15 compiled version I get
this:

Traceback (most recent call last):
  File "try_hello.py", line 1, in <module>
    import test
ImportError:
dlopen(/Users/brett/Dropbox/Code/kli-project/cython-test/test.so, 2): Symbol
not found: __Z19callback_test_helloP7_objecti
  Referenced from: /Users/brett/Dropbox/Code/kli-project/cython-test/test.so
  Expected in: dynamic lookup

Is there anything new I should be doing?

Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20110921/f8d394b9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: callbacks.cpp
Type: text/x-c++src
Size: 242 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20110921/f8d394b9/attachment-0001.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: callbacks.h
Type: text/x-chdr
Size: 320 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20110921/f8d394b9/attachment-0001.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pyx
Type: application/octet-stream
Size: 937 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20110921/f8d394b9/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: try_hello.py
Type: application/octet-stream
Size: 163 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20110921/f8d394b9/attachment-0003.obj>


More information about the cython-devel mailing list