我没有找到solus linux,它是什么,我怎么得到它
features.h not found solus linux, what is it and how do I get it?
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
相关文章:
- 使用大括号实例化 - 它是什么,为什么在这里使用它?
- 当我打印字符串时,我不知道它是什么输出
- 它是什么SOMTEMPLATE_VR_API
- wxDataViewModel:它是什么以及如何使用它
- typedef void (*MyCallback) : 它是什么以及如何使用它
- C ++技巧与*和它是什么意思
- 它是什么?C++宏函数?如何替换这个宏?我能举个例子吗
- 由向量中的负索引引起的杂散 '342' 或它是什么
- 我在运行时遇到以下错误.它是什么意思?我该如何调试它
- 视觉错误类 c++ 类。 不知道它是什么
- 为什么地址运算符是C++类的默认成员,它是什么
- 我不认为这是选角,但它是什么?
- 函数声明中带有[]运算符的指针——它是什么意思
- 警告C4309 -它是什么意思,在这种情况下可以忽略它
- CL错误与MS Visual Studio 2010,它是什么
- in(std::cin):它是什么意思
- 我没有找到solus linux,它是什么,我怎么得到它
- 存储分配器——它是什么?
- 分段故障(堆芯倾倒)?它是什么,为什么会引起???(c++中的双循环链表程序)
- boost::heap::arity,它是什么