【发布时间】:2011-10-20 14:52:36
【问题描述】:
我在我的机器上安装了一个软件包 libstree (x86_64/Redhat Linux)。
已按照说明 (./configure --prefix=/usr; make check; make install) 安装包。
已检查相关头文件是否在/usr/include 和/usr/lib 目录中。
但是,当我尝试编译测试程序时,我收到一条错误消息:
test.c:6:25: fatal error: lst_structs.h: No such file or directory
compilation terminated.
lst_structs.h 存在于/usr/include/stree 目录中。
有人对 GNU C 编译器为什么找不到头文件有任何想法吗?
【问题讨论】:
-
您是否包含
#include <stree/lst_structs.h>或#include <lst_structs.h>的文件? -
请说明您是如何包含该文件的。
-
你是
#include <stree/lst_structs.h>,还是#include <lst_structs.h>?
标签: c header compilation