Python for amd64 and mingw-w64

"Martin v. Löwis" martin at v.loewis.de
Fri Dec 19 01:30:13 EST 2008


>  - Any extension requires the MS_WIN64 to be defined, but this symbol
> is only defined for MS compiler (in PC/pyport.h).

Why do you say that? It is only defined when _WIN64 is defined; this
has nothing to do with a MS compiler.

> Shouldn't it be
> defined independantly of the compiler ?

You mean, completely unconditional? Definitely not, it should only
be defined when you are compiling for 64-bit mode.

>  - I have some link problems related to Py_InitModule4_64. I believe
> the problem is in libpython26.a, which according to nm does not have
> this symbol defined, whereas python26.dll has.

It's a mistake if libpython26.a gets included in the Win64 installer
at all; this library is only provided for 32-bit systems. My copy of
mingw doesn't support Win64 at all.

Regards,
Martin



More information about the Python-list mailing list