首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >features.h未找到solus linux,它是什么?我如何获取它?

features.h未找到solus linux,它是什么?我如何获取它?
EN

Stack Overflow用户
提问于 2016-08-26 09:54:08
回答 1查看 6.9K关注 0票数 5
代码语言:javascript
复制
In file included from /usr/include/c++/5.3.0/x86_64-solus-linux/bits/c++config.h:482:0,
             from /usr/include/c++/5.3.0/cstdlib:41,
             from prog1.h:4,
             from prog1.cc:1:
/usr/include/c++/5.3.0/x86_64-solus-linux/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory
compilation terminated.

我对Linux/Unix相当陌生,我正在尝试在Solus上进行基本的c++编译(在虚拟机上运行)。我已经安装了gcc和g++,而且据我所知,标准的c++库也已经安装了。

然而,当我试图编译一个程序时,我得到了上面所示的错误消息。这是我的头文件:

代码语言:javascript
复制
#ifndef PROG1_H
#define PROG1_H

#include<cstdlib>
#include<iostream>
#include<iomanip>
#include<vector>


const int VEC_SIZE = 250;
const int LOW = 1;
const int HIGH = 10000;
const int ITEMS_PER_LINE = 12;
const int ITEM_W = 5;
const int SEED = 1;

void genRndNums(vector<int>& v); // generates random integers and assigns them to the vector array

void printVec(const vector<int>& v); // prints the vector array, 12 numbers per line

#endif

由于某些原因,文件features.h丢失了,我不知道它是什么,也不知道如何获取它。如果有人能帮上忙,我将不胜感激。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-08-26 10:45:50

请安装system.devel组件。仅安装编译器是不够的,您还需要头文件和库。

代码语言:javascript
复制
sudo eopkg it -c system.devel

可以将其视为我们的build-essential的等价物

票数 8
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39157242

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档