config.h中

编程入门 行业动态 更新时间:2024-10-27 05:34:57
本文介绍了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中

本文发布于:2023-10-04 18:20:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1467197.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:config

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!