embedding error

Bjorn Pettersen BPettersen at NAREX.com
Thu Nov 7 17:57:14 EST 2002


> From: Lance [mailto:lbrannma at cablespeed.com] 
> 
> Hi,
> 
> The code in section 5.3 of the Python "Extending and 
> Embedding the Python Interpreter" won't compile for me. I get 
> a link error,
> 
> LINK : fatal error LNK1104: cannot open file "python22_d.lib"
> 
> I include stdafx.h and python.h at the top of my C program.
> 
> Python22_d.lib is not on my machine. I'm running a recent 
> release of PythonWin.
> 
> Any suggestions would be appreciated.

You need to get the sourcee code for Python and compile it yourself.
python22_d.lib is created from a debug build, the regular distributions
only give you the release builds.

-- bjorn




More information about the Python-list mailing list