features.h找不到solus linux,它是什么,我怎么得到它?

时间:2016-08-26 01:54:08

标签: c++ linux compiler-errors

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,我不知道它是什么或如何获取它。如果有人可以帮助我,我会非常感激。

1 个答案:

答案 0 :(得分:3)

请安装struct tuple { var view: UIView var property: Any var value: Bool init(view: UIView, property: Any, value: Bool) { self.view = view self.property = property self.value = value } } var states = Array<Dictionary<String, tuple>>() override func viewDidLoad() { super.viewDidLoad() // set initial value var tuple1 = ["123" : tuple(view: UIView(), property: 2, value: false)] var tuple2 = ["456" : tuple(view: UIView(), property: 5, value: false)] // update value print(tuple1.keys.first) tuple1.updateValue(tuple(view: UIView(), property: 2, value: true), forKey: "123") // one way tuple1[tuple1.keys.first!]?.property = 3 // another way states = [tuple1, tuple2] for item in states { if item.keys.contains("123") { item["123"]?.view.isHidden = (item["123"]?.value)! print(item["123"]?.view.isHidden, item["123"]?.value, item["123"]?.property) } } } 组件。单独安装编译器是不够的,您也需要标头和库。

system.devel

将其视为等同于sudo eopkg it -c system.devel