RE: [C++-sig] boost.python coredump in debug mode..?
From: David Abrahams [mailto:dave@boost-consulting.com]
"Bjorn Pettersen" <BPettersen@NAREX.com> writes:
From: David Abrahams [mailto:dave@boost-consulting.com]
"Bjorn Pettersen" <BPettersen@NAREX.com> writes:
I'm working through the tutorial introduction, and I'm getting a strange coredump in a debug build. I'm at the struct World example with a constructor: [snip]
Perhaps you didn't carefully read the section on build variants at http://www.boost.org/libs/python/building.html?
I got a 404 with that link, but I did read the Build Variants section at http://www.boost.org/libs/python/doc/building.html and 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 -- bjorn
"Bjorn Pettersen" <BPettersen@NAREX.com> writes:
From: David Abrahams [mailto:dave@boost-consulting.com]
"Bjorn Pettersen" <BPettersen@NAREX.com> writes:
From: David Abrahams [mailto:dave@boost-consulting.com]
"Bjorn Pettersen" <BPettersen@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. -- David Abrahams dave@boost-consulting.com * http://www.boost-consulting.com
participants (2)
-
Bjorn Pettersen -
David Abrahams