building python extensions for windows : python23_d.lib file is missing

  • Thread starter Antoine Maillard
  • Start date
A

Antoine Maillard

Hi
We're looking to make our own python modules for windows Python 23.
We use swig and Visual Studio C++ for making the dlls. But when trying to
compile, it says it's been missing a "Python23_d.lib" file.
According to the tutorial we did
(http://www.geocities.com/foetsch/python/extending_python.htm#abstract),
it's a problem with the fact we use the release version of python and not a
débug version.
But we don't know how to go through this (perhaps recompiling a debug
version ... but we don't know how to do).
Did someone get this problem and walk throug it ?
Thanks for your help
Antoine Maillard & André Garenne
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

Antoine said:
But we don't know how to go through this (perhaps recompiling a debug
version ... but we don't know how to do).

Yes, you need to compile a debug version. Download the Python source
code, and follow the instructions in PCbuild/readme.txt.

Alternatively:
a) build a release version of your own code, not a debug version, or
b) do not define _DEBUG in the debug version of your code

Regards,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top