By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,905 Members | 1,630 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,905 IT Pros & Developers. It's quick & easy.

PyWin32 installation

P: n/a
mg
Hi all,

I have reinstalled my Win32 computer last week and I did an update of
the project PyWin32 to complete my Python installation.
(I have to use sources from CVS for my project !)

So, when I run 'python setup.py' in my PyWin32 directory, I have two
problem : the version indacated in windows.h and some symbols who are
not defined. See the trace :

running install
running build
running build_py
running build_ext
Warning - can't find an installed platform SDK
Found WINDOWS.H version 0x501 in C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\PlatformSDK\include
building 'win32print' extension
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO
/LIBPATH:C:\ext_projects\python\dist\src\libs
/LIBPATH:C:\ext_projects\python\dist\src\PCBuild
/LIBPATH:build\temp.win32-2.5\Release winspool.lib user32.lib
/EXPORT:initwin32print
build\temp.win32-2.5\Release\win32\src\win32print\win32print.obj
/OUT:build\lib.win32-2.5\win32\win32print.pyd
/IMPLIB:build\temp.win32-2.5\Release\win32\src\win32print\win32print.lib
/MACHINE:ix86
Creating library
build\temp.win32-2.5\Release\win32\src\win32print\win32print.lib and
object build\temp.win32-2.5\Release\win32\src\win32print\win32print.exp
win32print.obj : error LNK2019: unresolved external symbol
__imp__StartDocA@8 referenced in function "struct _object * __cdecl
PyStartDoc(struct _object *,struct _object *)"
(?PyStartDoc@@YAPAU_object@@PAU1@0@Z)
win32print.obj : error LNK2019: unresolved external symbol
__imp__EndDoc@4 referenced in function "struct _object * __cdecl
PyEndDoc(struct _object *,struct _object *)"
(?PyEndDoc@@YAPAU_object@@PAU1@0@Z)

Then, I don't kwnow how to solve theses problem ! Is there someone tho
help me ?
Thank,

Mathieu G.
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Gdi32 needs to be added to the libraries for win32print in setup.py.
(just checked it in)

Roger
"mg" <mg*************@laposte.net> wrote in message
news:ma***************************************@pyt hon.org...
Hi all,

I have reinstalled my Win32 computer last week and I did an update of the
project PyWin32 to complete my Python installation.
(I have to use sources from CVS for my project !)

So, when I run 'python setup.py' in my PyWin32 directory, I have two
problem : the version indacated in windows.h and some symbols who are not
defined. See the trace :

running install
running build
running build_py
running build_ext
Warning - can't find an installed platform SDK
Found WINDOWS.H version 0x501 in C:\Program Files\Microsoft
Visual Studio .NET 2003\Vc7\PlatformSDK\include
building 'win32print' extension
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO
/LIBPATH:C:\ext_projects\python\dist\src\libs
/LIBPATH:C:\ext_projects\python\dist\src\PCBuild
/LIBPATH:build\temp.win32-2.5\Release winspool.lib user32.lib
/EXPORT:initwin32print
build\temp.win32-2.5\Release\win32\src\win32print\win32print.obj
/OUT:build\lib.win32-2.5\win32\win32print.pyd
/IMPLIB:build\temp.win32-2.5\Release\win32\src\win32print\win32print.lib
/MACHINE:ix86
Creating library
build\temp.win32-2.5\Release\win32\src\win32print\win32print.lib and
object build\temp.win32-2.5\Release\win32\src\win32print\win32print.exp
win32print.obj : error LNK2019: unresolved external symbol
__imp__StartDocA@8 referenced in function "struct _object * __cdecl
PyStartDoc(struct _object *,struct _object *)"
(?PyStartDoc@@YAPAU_object@@PAU1@0@Z)
win32print.obj : error LNK2019: unresolved external symbol
__imp__EndDoc@4 referenced in function "struct _object * __cdecl
PyEndDoc(struct _object *,struct _object *)"
(?PyEndDoc@@YAPAU_object@@PAU1@0@Z)

Then, I don't kwnow how to solve theses problem ! Is there someone tho
help me ?
Thank,

Mathieu G.



----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.