[python-win32] VS.NET2005; missing include/lib paths and libraries

Stephen Warren s-t-python-win32 at wwwdotorg.org
Tue Sep 25 06:41:49 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I just grabbed the latest SVN head (trunk) of Python and attempted to
build using VS .NET 2005 Express, and the sln/vcproj files in the
PCbuild8 directory.

I had a few problems building even the pythoncore and python targets.

First off, the Python code appears to rely on the MS Platform SDK,
although the documents don't seem to mention this. I guess it's just
assumed this is available?

Second, the project files don't explicitly reference the Platform SDK
include/library directories, so various headers/libs can't be found. Is
it just assumed that the IDE global settings (Tools -> Options ->
Projects and Solutions -> VC++ Directories) are configured to point at
the relevant platform SDK directories?

The above two points may just be assumptions for usage of the project
files. However, the final issue I had was missing libraries in the
linker command; e.g. pythoncore needed me to add "user32.lib shell23.lib
advapi32.lib" to the list of linker inputs. I don't think the IDE has a
global list of libraries that always get linked in; how are these
libraries expected to be found/known-about?

Thanks for any information. If/when I find out the answer, I'll have a
go at updating the PCbuild8/readme.txt with some extra tips for other
people like myself!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+JBFhk3bo0lNTrURAglHAKCu1qKBcfl9u9kPPz2yus0APEYTwgCgouYn
uU13//LgzZvNwMvjW5cgfqE=
=hCwq
-----END PGP SIGNATURE-----


More information about the python-win32 mailing list