[英]'unknown type name' error while using Cython to generate C code
我已经使用Cython成功生成了.c文件,但是当我尝试使用gcc进行编译时,出现了这些错误...这只是错误的第一行...共有3页类似的错误。我的.py代码很简单:
print "test"
错误:
unknown type name ‘Py_UNICODE’
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
请参阅此邮件列表帖子 。
引用:
Cython is not a Python to C compiler in the sense that it does away
with the Python interpreter/runtime, rather it creates .c files that
are compiled against the Python/C API and can be loaded into a running
session.
有关编译的指南,还请查看Cython Wiki的编译页面
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.