[C++-sig] Re: Boost::Python for C code -> Segmentation fault
mario-p at iname.com
Fri Jul 23 11:25:33 CEST 2004
It doesn't work. I get the same segfault with the extern "C" and without the
I'll try make_setter and make_getter rather than def_readwrite(). Then I'll try
to run python inside gdb and get a backtrace (bt) of where the segfault is
happening... Can someone reproduce my segfault?
David Abrahams escribió:
> "Niall Douglas" <s_sourceforge at nedprod.com> writes:
>>On 22 Jul 2004 at 22:16, Mario Palomo wrote:
>>>Why this doesn't work on Boost::Python?
>>Does it work without the extern "C"?
> Extern "C" function pointers and C++ function pointers are different
> types, and BPL isn't set up to handle extern "C" at all. On a
> conforming implementation, any attempt to wrap extern "C" functions
> without first building C++ thin wrappers will fail. That said, if
> things are compiling your compiler probably ignores that part of the
> type and there's some other problem.
More information about the Cplusplus-sig