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
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句