Installation 使用cygwin(Python 2.5和Windows XP)安装带有加速功能的simplejson软件包
我在尝试安装simplejson软件包时遇到以下错误,该软件包具有针对(Python2.5,WinXP)的加速功能。simplejson的纯Python安装是成功的,但我想安装加速版 错误Installation 使用cygwin(Python 2.5和Windows XP)安装带有加速功能的simplejson软件包,installation,mingw32,python-2.5,simplejson,Installation,Mingw32,Python 2.5,Simplejson,我在尝试安装simplejson软件包时遇到以下错误,该软件包具有针对(Python2.5,WinXP)的加速功能。simplejson的纯Python安装是成功的,但我想安装加速版 错误 In file included from C:\Python25\include/Python.h:84:0, from simplejson/_speedups.c:2: C:\Python25\include/intobject.h:44:35: error: expe
In file included from C:\Python25\include/Python.h:84:0,
from simplejson/_speedups.c:2:
C:\Python25\include/intobject.h:44:35: error: expected '=', ',', ';', 'asm' or ' before'
PyInt_AsUnsignedLongLongMask'
PyAPI_FUNC(unsigned PY_LONG_LONG) PyInt_AsUnsignedLongLongMask(PyObject *);
^
In file included from C:\Python25\include/Python.h:86:0,
from simplejson/_speedups.c:2:
C:\Python25\include/longobject.h:43:1: warning: parameter names (without types) in function
declaration
PyAPI_FUNC(PyObject *) PyLong_FromLongLong(PY_LONG_LONG);
^
In file included from C:\Python25\include/Python.h:57:0,
from simplejson/_speedups.c:2:
C:\Python25\include/pyconfig.h:257:23: error: unknown type name '__int64'
# define PY_LONG_LONG __int64
^
C:\Python25\include/pyport.h:637:28: note: in definition of macro 'PyAPI_FUNC'
# define PyAPI_FUNC(RTYPE) RTYPE
^
C:\Python25\include/longobject.h:45:12: note: in expansion of macro 'PY_LONG_LO '
PyAPI_FUNC(PY_LONG_LONG) PyLong_AsLongLong(PyObject *);
^
In file included from C:\Python25\include/Python.h:86:0,
from simplejson/_speedups.c:2:
C:\Python25\include/longobject.h:46:35: error: expected '=', ',', ';', 'asm' or ' befo
re 'PyLong_AsUnsignedLongLong'
PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLong(PyObject *);
^
C:\Python25\include/longobject.h:47:35: error: expected '=', ',', ';', 'asm' or ' befo
re 'PyLong_AsUnsignedLongLongMask'
PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLongMask(PyObject *);