を構築するために、私はクイックスタートガイドに従った後、この問題を得る:ここでCythonを実行するcythonを取得しようとするPythonスクリプト
$ ~/midt $ ./setup.py build_ext --inplace
running build_ext
building 'proc' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c proc.c -o build/temp.linux-x86_64-2.7/proc.o
proc.c:2511:16: error: ‘initproc’ redeclared as different kind of symbol
PyMODINIT_FUNC initproc(void); /*proto*/
^
In file included from /usr/include/python2.7/Python.h:80:0,
from proc.c:16:
/usr/include/python2.7/object.h:320:15: note: previous declaration of ‘initproc’ was here
typedef int (*initproc)(PyObject *, PyObject *, PyObject *);
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
は私のバージョン番号やものです:
$ ~/midt $ python --version
Python 2.7.6
$ ~/midt $ cython --version
Cython version 0.23.5
$ ~/midt $ uname -a
Linux xxxxx 3.13.0-37-generiC#64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux