config.h中 - 没有这样的文件或目录 [英] Config.h - No such file or directory

查看:1561
本文介绍了config.h中 - 没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文件'安全-read.c包括库'config.h'的,在这里放置此文件?

我发现很多文件,这个名字在库,但我不知道什么是正确的。

更新

我有我的文件有:

  ...
#包括LT&;安全-read.h>
#包括LT&;安全-read.c>
...

在文件中的安全 - read.c 的有这包括块

 的#include<&config.h文件GT; // 19行/ *规格。 * /
#IFDEF SAFE_WRITE
#包括安全write.h
#其他
#包括安全read.h
#万一/ *获取ssize_t供。 * /
#包括LT&; SYS / types.h中>
#包括LT&;&unistd.h中GT;#包括LT&;&errno.h中GT;#IFDEF EINTR
#定义IS_EINTR(X)((x)的== EINTR)
#其他
#定义IS_EINTR(X)0
#万一#包括LT&;&limits.h中GT;#IFDEF SAFE_WRITE
#定义safe_rw safe_write
#定义RW刻录
#其他
#定义safe_rw safe_read
#定义RW读取
#民主基金常量
#定义常量/ * *空/
#万一

当我编译我的文件,我有以下错误:


  

文件:X / Y / gnulib / lib目录/安全-read.c行:19消息:致命错误:
  config.h中:没有这样的文件或目录



解决方案

的config.h 通常是由产生./配置脚本,以反映目标系统的特性。根据你的情况,它扎成整个gnulib让我们全部更换系统的库函数与出自己的黑客烂摊子,所以很多东西是在一个gnulib项目的config.h 是的东西,配置生成的。

的gnulib的一部分

The file 'safe-read.c' include the lib 'config.h', where is placed this file?

I've found many files with this name in the libs, but I don't know what the right one.

UPDATE

I've my file with:

...
#include <safe-read.h>
#include <safe-read.c>
...

in the file safe-read.c there's this include block

#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

When I compile my file I've the following error:

file: X/Y/gnulib/lib/safe-read.c line: 19 message: fatal error: config.h: No such file or directory

解决方案

config.h is normally generated by the ./configure script to reflect the target system's characteristics. In your case, it's tied into the whole gnulib "let's replace all the system's library functions with out own hacks" mess, so a lot of what's in a gnulib project config.h is stuff that gnulib's portion of configure generated.

这篇关于config.h中 - 没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆