我试图编译一个Python程序,其中包含一些C文件。你知道吗
在一个文件emodule.c
中,它读取:
#include "Python.h"
#include "ul/ul.h"
我已经有了ul
文件夹,并将它与emodule.c
放在同一个文件夹中,但是,当我运行python setup.py build
时,它仍然显示:
fatal error: ul/ul.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
我应该把ul
文件夹放在哪里?你知道吗
尝试将
include_dirs = ['ul']
添加到对setup.py
中setup()
的调用中。你知道吗有关详细信息,请参阅
setupscripts
文档的Preprocessor Options部分。你知道吗相关问题 更多 >
编程相关推荐