Yug*_*dle 4 c python gcc include include-path
我的C代码:
#include<stdio.h>
#include "Python.h"
int main()
{
printf("Hello World");
return 0;
}
Run Code Online (Sandbox Code Playgroud)
我python-dev安装了python2.7.此外,Python.h可用于/usr/include/python2.7.
gcc myfile.c #Pix.h:没有这样的文件或目录
我甚至尝试过:
gcc -L/usr/include/python2.7/ myfile.c#Pix.h:没有这样的文件或目录
我尝试ujson使用pip 构建一个python c模块Python.h,它能够编译.
我错过了什么/做错了什么?
mat*_*ata 10
应该是-I,而不是-L:
gcc -I/usr/include/python2.7 myfile.c
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5060 次 |
| 最近记录: |