[C++-sig] boost.python coredump in debug mode..?
David Abrahams
dave at boost-consulting.com
Sat Nov 2 03:45:17 CET 2002
"Bjorn Pettersen" <BPettersen at NAREX.com> writes:
> > From: David Abrahams [mailto:dave at boost-consulting.com]
> >
> > "Bjorn Pettersen" <BPettersen at NAREX.com> writes:
> >
> > > > From: David Abrahams [mailto:dave at boost-consulting.com]
> > > >
> > > > "Bjorn Pettersen" <BPettersen at NAREX.com> writes:
> > >
> > > I must be dense because I still can't get it to work. I included
> > > <boost/python/detail/wrap_python.hpp> at the top of my file,
> > > defined _DEBUG, and linked with either boost_python.lib or
> > > boost_python_debug.lib and I'm always getting the coredump. I'm
> > > sure I'm missing something obvious....
> >
> > What was the test case again?
>
> >>> import hello
> >>> x = hello.World('hi')
> >>> hello.World('hi') # this call...
> <hello.World object at 0x0089E748>
> >>> x.greet() # ... causes this to coredump
>
> with the code at
> http://www.boost.org/libs/python/doc/tutorial/doc/constructors.html
I don't know what you're doing wrong, but if you drop the enclosed
files into $BOOST_ROOT/libs/python/user and build with bjam, the
it checks out fine in both vc6 and vc7 with the current boost CVS
state.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Jamfile
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20021101/0cc1ac59/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.cpp
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20021101/0cc1ac59/attachment-0001.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.py
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20021101/0cc1ac59/attachment-0002.txt>
-------------- next part --------------
--
David Abrahams
dave at boost-consulting.com * http://www.boost-consulting.com
More information about the Cplusplus-sig
mailing list