[Python-Dev] building with C++ (original) (raw)
Jeremy Hylton jeremy at alum.mit.edu
Thu Apr 13 04:03:20 CEST 2006
- Previous message: [Python-Dev] building with C++
- Next message: [Python-Dev] building with C++
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 4/12/06, Anthony Baxter <anthony at interlink.com.au> wrote:
The code is nearly building fine. there's an issue in sre.c with some code that either returns a PyUNICODE* or an SRECHAR* (unsigned char*) in a void*. The code probably needs a refactoring to deal with that. There's also Python/compile.c: In function 'int compilercompare(compiler*, expr*)': Python/compile.c:3065: error: invalid cast from type 'void*' to type 'cmpopty' Python/compile.c:3075: error: invalid cast from type 'void*' to type 'cmpopty' which I haven't looked at yet. Anyone else is welcome to fix these.
The code in compile.c is pretty dodgy. I'd like to think of a better way to represent an array of cmpop_ty objects than casting ints to void* and then back.
Jeremy
To get past those two, I've been building just those two files with gcc, with "make CC=gcc Python/compile.o Modules/sre.o"
Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/jeremy%40alum.mit.edu
- Previous message: [Python-Dev] building with C++
- Next message: [Python-Dev] building with C++
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]