[C++-sig] Re: Boost::Python for C code -> Segmentation fault
David Abrahams
dave at boost-consulting.com
Fri Jul 23 00:01:51 CEST 2004
"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.
--
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
More information about the Cplusplus-sig
mailing list