Re: please include python26_d.lib in the installer

2009-04-20 Thread Compie
On 31 mrt, 22:53, Carl Banks wrote: > On Mar 31, 12:50 pm, Compie wrote: > > > On 27 mrt, 17:01, Carl Banks wrote: > > > > OTOH, it's possible that SWIG and Python just happen to use the same > > > macro to indicate debugging mode.  So I think you raise a valid point > > > that this can be probl

Re: please include python26_d.lib in the installer

2009-03-31 Thread Carl Banks
On Mar 31, 12:50 pm, Compie wrote: > On 27 mrt, 17:01, Carl Banks wrote: > > > OTOH, it's possible that SWIG and Python just happen to use the same > > macro to indicate debugging mode.  So I think you raise a valid point > > that this can be problematic.  Perhaps something like _Py_DEBUG should

Re: please include python26_d.lib in the installer

2009-03-31 Thread Christian Heimes
> So I'm proposing: please use _PYTHON_DEBUG for this purpose. Would > this cause any problems? Python has its own debug flag: Py_DEBUG. The roles of _DEBUG and Py_DEBUG could easily be changed in PC/pyconfig.h. Any change needs a discussion on the Python ideas list. *wink* Christian -- http://m

Re: please include python26_d.lib in the installer

2009-03-31 Thread Compie
On 27 mrt, 17:01, Carl Banks wrote: > OTOH, it's possible that SWIG and Python just happen to use the same > macro to indicate debugging mode.  So I think you raise a valid point > that this can be problematic.  Perhaps something like _Py_DEBUG should > be used instead. This would be a good solut

Re: please include python26_d.lib in the installer

2009-03-30 Thread Christian Heimes
Johan Compen wrote: > If Python doesn't include the _d.lib file, then why does the header > file reference it? I would prefer manual control over which lib file > to use. (And I don't want to disable _DEBUG for other reasons). > > Could the header file be changed so it alwas uses the release lib?

Re: please include python26_d.lib in the installer

2009-03-30 Thread Johan Compen
On Sat, Mar 28, 2009 at 1:17 AM, Mark Hammond wrote: >> Please note: I want to build my own code in Debug mode for debugging. >> I don't want to build or use the debug version of Python. I also can't > > Python does this on purpose so you don't accidentally mix different versions > of the C runtim

Re: please include python26_d.lib in the installer

2009-03-27 Thread Mark Hammond
Please note: I want to build my own code in Debug mode for debugging. I don't want to build or use the debug version of Python. I also can't Python does this on purpose so you don't accidentally mix different versions of the C runtime library. This would happen ff you defined DEBUG in your co

Re: please include python26_d.lib in the installer

2009-03-27 Thread Carl Banks
On Mar 27, 1:48 am, Compie wrote: > I get this linker error > LINK : fatal error LNK1104: cannot open file 'python26_d.lib' > when I build the debug version of my Visual Studio project. > > This is caused by the following lines in the file c:\Python26\include > \pyconfig.h > #                    

please include python26_d.lib in the installer

2009-03-27 Thread Compie
I get this linker error LINK : fatal error LNK1104: cannot open file 'python26_d.lib' when I build the debug version of my Visual Studio project. This is caused by the following lines in the file c:\Python26\include \pyconfig.h # ifdef _DEBUG # p