【问题标题】:message that 'features.h' file not found and 'libioP.h' file not found未找到“features.h”文件和未找到“libioP.h”文件的消息
【发布时间】:2020-11-02 12:54:54
【问题描述】:

所以.. 有代码。逐行解释代码。我有消息说找不到“features.h”文件和找不到“libioP.h”文件。我该如何解决? QT中的编译器minGW

#include <features.h>
#undef __GLIBC_USE_DEPRECATED_SCANF
#define __GLIBC_USE_DEPRECATED_SCANF 1
#include <stdarg.h>
#include <stdio.h>
#include <libioP.h>
/* Read formatted input from stdin according to the format string FORMAT. */
/* VARARGS1 */
int
__scanf (const char *format, ...)
{
va_list arg;
int done;
va_start (arg, format);
done = __vfscanf_internal (stdin, format, arg, 0);
va_end (arg);
return done;
}
ldbl_strong_alias (__scanf, scanf)

【问题讨论】:

  • 确切的错误是什么,配置是什么?见stackoverflow.com/questions/23515168
  • 错误 1:未找到“features.h”文件。错误 2:找不到“libioP.h”文件。我有 Win 10 x64 但编译器 minGW 32 位。我在QT工作。编程语言是C

标签: c qt mingw


【解决方案1】:

您可能需要安装库来支持 GCC。解决方案因您使用的操作系统而异。

如果您使用的是 Ubuntu,请使用:

sudo apt install build-essential

对于其他操作系统,您可以搜索 install build-essential + 您的操作系统以获取更多信息

Build-essential 是编译器基本库的集合,您发布的 .h 文件属于这些库之一。你在安装 MinGW 的时候检查过软件包吗?它应该像这样在基本设置中

那些名称包含 gcc 或 lib 的库很可能在您当前和未来的项目中需要,您可以重新安装 MinGW 以下载这些包。

【讨论】:

  • 我有 Win10。我没有听说过 build-essential 。它是什么以及如何安装它?
  • 它是编译器必备库的集合,您发布的 .h 文件属于这些库之一。你在安装 MinGW 的时候检查过软件包吗?它应该像这样在基本设置中
  • 是的,我检查了包裹。我只找到 features.h 但我找不到 libioP.h 那里。我可以在哪里安装 libioP.h?
猜你喜欢
  • 2022-01-21
  • 1970-01-01
  • 1970-01-01
  • 2013-08-16
  • 1970-01-01
  • 2018-03-02
  • 2022-06-23
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多