Problem building extension sample with Python 2.2.3

Michael Hudson mwh at
Tue Jul 22 15:53:53 CEST 2003

iambren at (Bren) writes:

> Hi, 
> I'm trying to build the sample extension file from
> I get a linker error:
> Linking...
> spam.obj : error LNK2001: unresolved external symbol
> __imp__Py_InitModule4TraceRefs
> Also, I find it necessary to ignore python22_d.lib and link
> python22.lib explicitly when I make a Debug build.

There's your problem, I think.  You seem to be trying to build a debug
version of your module against a release version of Python.  This
won't work.


  Check out the comments in this source file that start with:
  # Oh, lord help us.
            -- Mark Hammond gets to play with the Outlook object model

More information about the Python-list mailing list