Missing python23_d.lib in Windows Python 2.3

Discussion in 'Python' started by Partho Bhowmick, Sep 16, 2003.

  1. I am building extension modules for Python 2.3 under Windows using MS Visual
    Studio .Net 2003.
    In the debug build, there is a pragma statement in <pyconfig.h> that causes
    a link to the lib python23_d.lib
    This library does not exist.
    Am I missing something or is the installation missing something?
    Partho Bhowmick, Sep 16, 2003
    #1
    1. Advertising

  2. Partho Bhowmick wrote:
    > I am building extension modules for Python 2.3 under Windows using MS Visual
    > Studio .Net 2003.
    > In the debug build, there is a pragma statement in <pyconfig.h> that causes
    > a link to the lib python23_d.lib
    > This library does not exist.
    > Am I missing something or is the installation missing something?


    The standard distribution does not come with a debug version of that
    library.

    You can get around it by doing:

    #ifdef _DEBUG
    #undef _DEBUG
    #include <python.h>
    #define _DEBUG
    #else
    #include <python.h>
    #endif

    Ugly but it works.

    Harri
    Harri Pesonen, Sep 16, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paton J. Lewis
    Replies:
    1
    Views:
    672
    Mark Hammond
    Jan 30, 2004
  2. Shankar KN

    python23_d.lib

    Shankar KN, Jun 11, 2004, in forum: Python
    Replies:
    9
    Views:
    750
    Tonetheman
    Jun 22, 2004
  3. Thomas Heller

    Re: python23_d.lib

    Thomas Heller, Jun 22, 2004, in forum: Python
    Replies:
    0
    Views:
    385
    Thomas Heller
    Jun 22, 2004
  4. Miki Tebeka

    Re: python23_d.lib

    Miki Tebeka, Jun 23, 2004, in forum: Python
    Replies:
    0
    Views:
    375
    Miki Tebeka
    Jun 23, 2004
  5. Antoine Maillard
    Replies:
    1
    Views:
    338
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Aug 2, 2004
Loading...

Share This Page