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

2009-04-22 Thread Brian O'Kennedy
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_DEBUG_PYTHON and Py_DEBUG:

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
I think the configure step on linux generates the pyconfig.h file which contains #define Py_DEBUG 1 On Windows, the pyconfig.h file comes from Python/PCBuild/pyconfig.h which seems to be hand generated and contains: #ifdef _DEBUG # define Py_DEBUG #endif I suppose the reason this was don

[C++-sig] python objects not is the same in separated modules

2009-04-22 Thread Renato Araujo
Hi guys, I found a problems with my binds when I work with separated modules. In my function where return a c++ pointer to a object, this not return the same python object used in setter function. The main point here is because this works fine when all classes are exported in the same module but w

Re: [C++-sig] pygccxml and multidimensional arrays

2009-04-22 Thread Davidson, Josh
Is this a confirmed bug? Thanks, Josh -Original Message- From: cplusplus-sig-bounces+josh.davidson=lmco@python.org [mailto:cplusplus-sig-bounces+josh.davidson=lmco@python.org] On Behalf Of Davidson, Josh Sent: Thursday, April 16, 2009 10:04 AM To: Development of Python/C++ integ

Re: [C++-sig] Expanding embedded code

2009-04-22 Thread Robin Gilks
Stefan Seefeld wrote: Robin Gilks wrote: A difficult question to put a title to so I'll paint a brief scenario... The application is written in c++ It receives a data message and instantiates a message decoder class. Based on the contends that are extracted into the class variables, a respons