编译需要python.h和cl.h的程序

时间:2017-07-30 15:11:39

标签: c gcc compiler-errors compilation

我正在尝试使用python.h编译同时使用cl.hgcc -Wall -I/usr/include/python2.7 -lpython2.7 -I/home/arm/bin/c/hashcat/deps/OpenCL-Headers/CL -lOpenCL cpu_md4.c -o cpu_md4的程序,但是当我运行此程序时,我会得到以下内容:

arm@arm-Aspire-5733Z:~/bin/python/dagon/bin/attacks/cpu_attack$ gcc -Wall -I/usr/include/python2.7 -lpython2.7 -I/home/arm/bin/c/hashcat/deps/OpenCL-Headers/CL -lOpenCL cpu_md4.c -o cpu_md4
In file included from types.h:889:0,
                 from cpu_md4.c:10:
ext_OpenCL.h:15:19: fatal error: CL/cl.h: No such file or directory
 #include <CL/cl.h>
                   ^
compilation terminated.
arm@arm-Aspire-5733Z:~/bin/python/dagon/bin/attacks/cpu_attack$ 

我如何得到cl.h目录:

arm@arm-Aspire-5733Z:~/bin/python/dagon/bin/attacks/cpu_attack$ find / -iname cl.h 2>/dev/null
/home/arm/bin/c/hashcat/deps/OpenCL-Headers/CL/cl.h

如何使用我已有的头文件编译此应用程序?

0 个答案:

没有答案