Compiling pywin32 210

| | Comments (0) | TrackBacks (0)

Describing some of the changes made in order to make it compile using python 2.5.1 and visual studio 2005

Problem: Error: "cannot convert parameter 1 from long * to const time_t *

Solution: Make the conversion explicitly from long to time_t wherever necessary.

Problem: Unicode type in python

In several places the pywin32 source gives an type error regarding the unicode type.

Because MSVC 2005 is more demanding regarding type convertions, several errors arride. The solution is to manually convert the types.

We recompile python 2.5.1 changing the PY_UNICODE_TYPE to wchar_t.

Problem: Missing header "winhttp.h"

Installing "Service Pack 1 for Visual Studio 2005"

The service pack does not include "winhttp.h"

Installing "Platform SDK Server 2003 R2"

Yes. This huge package (400Mb image) have the winhttp.h and winhttp.lib. I've added both to our msvc80 distribution.

Remarks

Think about regenerating msvc80 (or msvc81) with the new stuff from Microsoft, including the SP1 for the visual studio and the "Platform SDK Server 2003 R2" (or similar).

Also think about using the free version of msvc (Express edition). Of course, we must check the license for that.

Categories

Leave a comment