Пишу кросс-платформенное приложение (под Linux, Windows 32-bit, 64-bit). Под Линуксом всё замечательно - всё компилируется. Под виндой тоже всё было замечательно под WinXP 32-bit, Python-2.5.4 (для сборки питоновского модуля на Си используется libpython25.a). Попробовал собрать под Win7 Professional 64-bit, Python-2.7.3. Оказалось, что среди файлов Python 2.7 нет библиотеки libpython27.a Погуглил. И нашел такое фразу разработчиков Python: http://stackoverflow.com/questions/7492416/building-64bit-libpython27-a-using...
Do not use MinGW-w64. As you will notice, the MinGW
import library for Python (e.g. libpython27.a) is omitted
from the AMD64 version of Python. This is deliberate. Do not
try to make one using dlltool. There is no official
MinGW-w64 release yet, it is still in "beta" and considered
unstable, although you can get a 64-bit build from e.g.
TDM-GCC. There have also been issues with the mingw runtime
conflicting with the MSVC runtime; this can happen from
places you don't expect, such as inside runtime libraries
for g++ or gfortran. To stay on the safe side, avoid
MinGW-w64 for now.
Почему разработчики Python так уважительно относятся к Linux'у и Microsoft Visual Studio, и так пренебрежительно - к MinGW-GCC и исправлению багов в виндовых версиях Питона? http://www.python.org/download/releases/2.5.4/
Python 2.5.4
We are pleased to announce the release of Python 2.5.4
(final), a bugfix release of Python 2.5, on December 23rd,
2008.
Python 2.5.4 has been replaced by a newer bugfix release of
Python. Please download Python 2.5.6 instead, unless you
need to use the Windows and OS X binaries provided
here.