building simple python 'embedding' in vc++6
Bryan
belred1 at yahoo.com
Wed May 28 21:35:24 EDT 2003
i had the same problem. python22_d.lib is a debug version of the python
library. in your python/include folder, you'll find pyconfig.h. in this
file is a MS_WIN32 section with pragma's that include the libs for you. i
just comment out this entire section (IMHO what a awful way to include
libs). i then include the lib in the "normal" MSdev studio way. i just
link to the release build version (python22.lib) for both release and debug
builds. i don't intend on debugging into the python library, so for me this
isn't a problem. you can add this file as regular file to the project, or
preferably as an additional lib in the project settings.
bryan
"TheDustbustr" <thedustbustr at aol.com> wrote in message
news:20030528203706.14471.00000430 at mb-m02.aol.com...
> I'm using MS VC++ 6 to build a simple python (2.2.2) embedding test. I
copied
> the include files into my project's directory. When I build, it throws
linker
> errors: it can't find python22_d.lib. I can't find it either! It isnt in
> python22/libs/.
>
> Where is this elusive library?
>
> Thanks, Dustin
More information about the Python-list
mailing list