我没有找到solus linux,它是什么,我怎么得到它

features.h not found solus linux, what is it and how do I get it?

本文关键字:它是什么 linux solus      更新时间:2023-10-16
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++库已经安装。

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

#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丢失了,我不知道它是什么,也不知道如何得到它。如果有人能帮忙,我将非常感激。

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

sudo eopkg it -c system.devel

把它看作是我们的等价的build-essential