compiling modules with VS 2008 for python 2.4 prepared with Visual Studio 2003

alf ask at me
Wed Apr 4 22:42:11 EDT 2007


Hi,

I want to add some library but it can not be comipled? Here is an output:


D:\>cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42
for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]


D:\> python setup.py install
running install
running build
running build_ext
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible
binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin
installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.



Thx for the help, Andy



More information about the Python-list mailing list