Compiling python extension on amd64 for 32 bit

Andrew MacIntyre andymac at bullseye.apana.org.au
Fri May 25 07:08:26 EDT 2007


Mathias Waack wrote:
> After switching my development environment to 64 bit I've got a problem with
> a python extension for a 32 bit application.

{...}

> Ok, thats fine. So why is python complaining? Or even more interesting, what
> do I have to do to compile the code?

Is the Python your toolchain is referencing 32 or 64 bit?  Based on what
I can see in pyport.h, I'd guess that you're finding a 64 bit Python (ie
SIZEOF_LONG == 8).

-- 
-------------------------------------------------------------------------
Andrew I MacIntyre                     "These thoughts are mine alone..."
E-mail: andymac at bullseye.apana.org.au  (pref) | Snail: PO Box 370
        andymac at pcug.org.au             (alt) |        Belconnen ACT 2616
Web:    http://www.andymac.org/               |        Australia



More information about the Python-list mailing list