如何解决使用cygwinPython 2.5和Windows XP安装带有加速功能的simplejson软件包
在尝试为(Python 2.5,WinXP)加速安装simplejson软件包时,出现以下错误。 PlainJSON的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: 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 *);
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。