我尝试在 ubuntu 上用 C 语言安装和使用 pocketsphinx,但一直收到此错误
/Desktop/Programming/C/Tests$ gcc libraries.c -o libraries
libraries.c:2:26: fatal error: pocketsphinx.h: No such file or directory
#include <pocketsphinx.h>
^
compilation terminated.
我已按照安装 sphinxbase 和 pocketsphinx 所需的步骤进行操作,发现 here但每次编译代码时我都会收到错误。有什么我错过的吗?
最佳答案
你是如何安装pocketsphinx的? “安装”是什么意思 要使用库,您首先需要将 header 放在编译器可以找到的位置(对于 GCC,例如使用 -I 选项),然后需要安装该库,以便编译器可以针对它进行构建。 从错误来看你没有向编译器指定库的头文件
关于c - 在c中使用pocketsphinx,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38572869/