文件'safe-read.c'包含lib'config.h',这个文件放在哪里?
我在库中找到了许多具有此名称的文件,但我不知道哪个是正确的。
UPDATE
我的文件有:
...
#include <safe-read.h>
#include <safe-read.c>
...
在文件中安全读取.c有这个包含块
#include <config.h> //line 19
/* Specification. */
#ifdef SAFE_WRITE
# include "safe-write.h"
#else
# include "safe-read.h"
#endif
/* Get ssize_t. */
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#ifdef EINTR
# define IS_EINTR(x) ((x) == EINTR)
#else
# define IS_EINTR(x) 0
#endif
#include <limits.h>
#ifdef SAFE_WRITE
# define safe_rw safe_write
# define rw write
#else
# define safe_rw safe_read
# define rw read
# undef const
# define const /* empty */
#endif
当我编译我的文件时,出现以下错误:
文件:X/Y/gnulib/lib/safe-read.c 行:19 消息:致命错误:
config.h:没有这样的文件或目录
config.h
通常由./configure
脚本能够反映目标系统的特性。在你的例子中,它与整个 gnulib “让我们用自己的 hack 替换所有系统的库函数”的混乱联系在一起,所以 gnulib 项目中有很多内容config.h
是 gnulib 的一部分configure
生成的。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)