Re: [Cython] cython 0.15 breaks callback code.

2011-09-25 Thread Brett Calcott
> which means your declaration of callback_test_hello in callbacks.cpp > also needs to be extern "c" to have the same (i.e. no) mangling. > That was it! Thanks, Brett ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/l

Re: [Cython] cython 0.15 breaks callback code.

2011-09-22 Thread Robert Bradshaw
On Wed, Sep 21, 2011 at 2:54 AM, Brett Calcott wrote: > 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. B

[Cython] cython 0.15 breaks callback code.

2011-09-21 Thread Brett Calcott
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: Trace