Re: [C++-sig] Extending python and using debug interpreter on Linux

2009-04-22 Thread Brian O'Kennedy
++ integration Subject: Re: [C++-sig] Extending python and using debug interpreter on Linux Brian O'Kennedy wrote: > After diving deeper into boost.python and python than I felt comfortable > with, I found my own stupid mistake. > > On Windows, the presence of _DEBUG causes Py_DEBUG t

Re: [C++-sig] Extending python and using debug interpreter on Linux

2009-04-22 Thread troy d. straszheim
Brian O'Kennedy wrote: After diving deeper into boost.python and python than I felt comfortable with, I found my own stupid mistake. On Windows, the presence of _DEBUG causes Py_DEBUG to be defined, but this is not the case on Linux. When I include boost/python.hpp I need to define both BOOST_

Re: [C++-sig] Extending python and using debug interpreter on Linux

2009-04-22 Thread Brian O'Kennedy
[email protected]] On Behalf Of Brian O'Kennedy Sent: 21 April 2009 16:12 To: [email protected] Subject: [C++-sig] Extending python and using debug interpreter on Linux Hi, I've built a local copy of Python with PY_DEBUG enabled and tried import a simple module wh

[C++-sig] Extending python and using debug interpreter on Linux

2009-04-21 Thread Brian O'Kennedy
Hi, I've built a local copy of Python with PY_DEBUG enabled and tried import a simple module which only defs a single c++ function returning a std::string. My test involves importing the module, and then quitting the interpreter; I'm not trying to call anything in the module. This works as exp