Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Date: Thu, 25 Mar 1999 14:43:02 +0200 From: Paul Sokolovsky X-Mailer: The Bat! (v1.00 Christmas Preview) UNREG Reply-To: Paul Sokolovsky Message-ID: <12613.990325@is.lg.ua> To: cygwin AT sourceware DOT cygnus DOT com Subject: [ANN] Python header patched to build modules with mingw32 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I packaged patched headers from Python 1.5.2b2, script to produce import library, and sample, all allowing/showing building DLL modules for Python/win32 with mingw32 target. http://www.infoservice.lg.ua/~paul/devel/python_headers.html ------------ This package contains patched headers and scripts to produce import library required to compile dll modules for Python 1.5.2b2 with mingw32 target (http://www.xralith.wisc.edu/~khan/software/gnu-win32/). 'Python' subdir contains headers, put it (whole subdir) into your include direcory (e.g., /usr/include). 'lib' subdir contains def file and Makefile to produce implib from it (dlltool required). Def file as of Python 1.5.1, it was dropped in 1.5.2, van Rossum suggests writing Python script to generate it from headers %) . When built, drop it to your lib dir (e.g., /usr/lib). 'sample' contains sample from core Python source. Changes to headers was made are as follows (see diffs): * Added config.h subpart for gnu-win32 compilers (those defining both __GCC__ and _WIN32). * Some of structural types are marked as dllimported, this is required for current egcs, or else it gives warnings (C mode) or crashes (C++ mode) when referencing dllimported variable of that type. Note that only _some_ of all types was marked, so if you get described behaviour, chase offending struct. (I don't mark them all because not all should be, and because it might bring other problems). ------------ Best regards, Paul mailto:paul-ml AT is DOT lg DOT ua -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com