python23_d.lib

Shankar KN 123 at 456.com
Tue Jun 15 12:55:39 CEST 2004


Hi,

Thanks for the reply.
But the problem persists.

There is only place where I do a #include <Python.h> (its in a .i file)
I did what you suggested around this include.

the problem is that running SWIG on this .i generates a .cxx file which we
don't want to modify.
This .cxx file has multiple occurences of #include <Python.h>, and only one
occurence gets the "guard" against _DEBUG.

Am I missing something here?


"Bryan" <belred1 at yahoo.com> wrote in message
news:40CC5C67.9040803 at yahoo.com...
> Miki Tebeka wrote:
> > Hello Bryan,
> >
> >
> >>this is the simplest approach i've found.  i just add this around the
> >>python.h include.
> >>
> >>#ifdef _DEBUG
> >
> > I think the following line is missing.
> > #undef _DEBUG
> >
> >>#include <Python.h>
> >>#define _DEBUG
> >>#else
> >>#include <Python.h>
> >>#endif
> >
> >
> > Bye.
> > --
>
> yes, of course... sorry, i shoud have copied it from me code instead of
just writing it here.
>
> thanks,
>
> bryan





More information about the Python-list mailing list