Problem building extension sample with Python 2.2.3

Michael Hudson mwh at python.net
Tue Jul 22 09:53:53 EDT 2003


iambren at sympatico.ca (Bren) writes:

> Hi, 
> 
> I'm trying to build the sample extension file from
> http://www.python.org/doc/current/ext/simpleExample.html.
> 
> 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.

Cheers,
M.

-- 
  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