首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >为c++20安装g++-9

为c++20安装g++-9
EN

Ask Ubuntu用户
提问于 2018-09-30 20:47:37
回答 1查看 9.4K关注 0票数 2

我想运行全功能 of c++20 on g++。但是,我需要为此目的安装g++-9

在安装导轨之后,g++的旧版本不适用于g++-9

有什么暗示吗?

代码语言:javascript
运行
AI代码解释
复制
sudo apt install g++-9

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package g++-9
E: Couldn't find any package by regex 'g++-9'

代码语言:javascript
运行
AI代码解释
复制
sudo apt install g++9

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libconfig9' for regex 'g++9'
Note, selecting 'libaac-tactics-ocaml-ibg92' for regex 'g++9'
Note, selecting 'libounit-ocaml-dev-afg95:i386' for regex 'g++9'
Note, selecting 'libjpeg9-dbg' for regex 'g++9'
Note, selecting 'libjpeg9-dev' for regex 'g++9'
Note, selecting 'libreins-ocaml-dev-rpyg9' for regex 'g++9'
Note, selecting 'libaac-tactics-ocaml-dev-ibg92' for regex 'g++9'
Note, selecting 'libjpeg9' for regex 'g++9'
Note, selecting 'libflac-ocaml-77yg9:i386' for regex 'g++9'
Note, selecting 'libflac-ocaml-dev-77yg9:i386' for regex 'g++9'
Note, selecting 'libaac-tactics-ocaml' instead of 'libaac-tactics-ocaml-ibg92'
Note, selecting 'libaac-tactics-ocaml-dev' instead of 'libaac-tactics-ocaml-dev-ibg92'
Note, selecting 'libreins-ocaml-dev' instead of 'libreins-ocaml-dev-rpyg9'
Note, selecting 'libflac-ocaml:i386' instead of 'libflac-ocaml-77yg9:i386'
Note, selecting 'libflac-ocaml-dev:i386' instead of 'libflac-ocaml-dev-77yg9:i386'
Note, selecting 'libounit-ocaml-dev:i386' instead of 'libounit-ocaml-dev-afg95:i386'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libaac-tactics-ocaml : Depends: libcoq-ocaml-d91z1
                        Depends: ocaml-base-nox-4.02.3
                        Recommends: libaac-tactics-coq but it is not going to be installed
 libaac-tactics-ocaml-dev : Depends: camlp5-tli55
                            Depends: libcoq-ocaml-dev-d91z1
                            Depends: ocaml-nox-4.02.3
 libflac-ocaml-dev:i386 : Depends: libogg-ocaml-dev-465c2:i386
                          Depends: ocaml-nox-4.02.3:i386
                          Depends: libogg-ocaml-dev:i386 but it is not going to be installed
 libounit-ocaml-dev:i386 : Depends: ocaml-nox-4.02.3:i386
 libreins-ocaml-dev : Depends: ocaml-nox-4.02.3
E: Unable to correct problems, you have held broken packages.
EN

回答 1

Ask Ubuntu用户

发布于 2020-03-09 02:19:42

安装g++ 8

代码语言:javascript
运行
AI代码解释
复制
sudo apt install g++-8

使用c++ 20版本运行g++-8 .

代码语言:javascript
运行
AI代码解释
复制
g++-8 -std=c++2a text.c++ -o compiled
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1079885

复制
相关文章
如何使用CGAL轻松检索两条相交多边形的相交线
如何使用CGAL轻松检索两条相交多边形的相交线(从第一个交点到最后一个交点)。看到图像的澄清,绿线是我想要的。使用CGAL获取多边形相交线
用户3519280
2023/07/06
4130
CGAL 计算两个凸多边形相交的面积
我正在使用 CGAL 计算两个凸多边形相交的面积。在对 this 的接受答案中发布了执行此操作的简短演示代码。问题。但是,当我修改该代码以使用我感兴趣的多边形时,CGAL 从 CGAL::intersection() 例程的深处抛出运行时异常。
用户3519280
2023/07/06
4280
多边形几何
参考: https://zh.wikipedia.org/wiki/几何中心 https://blog.csdn.net/xxdddail/article/details/70264399
sofu456
2019/07/09
4720
多边形游戏
多边形游戏是一个单人玩的游戏,开始时有一个由n个顶点构成的多边形。每个顶点被赋予一个整数值,每条边被赋予一个运算符“+”或“*”。所有边依次用整数从1到n编号。 1 将一条边删除。 2 随后n-1步按以下方式操作:   (1)选择一条边E以及由E连接着的2个顶点V1和V2;   (2)用一个新的顶点取代边E以及由E连接着的2个顶点V1和V2。将由顶点V1和V2的整数值通过边E上的运算得到的结果赋予新顶点。 3 最后,所有边都被删除,游戏结束。游戏的得分就是所剩顶点上的整数值。 思路: 在所给多边形中,从顶点
用户1154259
2018/01/17
1.1K0
Mapinfo高阶-判断点是否位于多边形内
笔者在工作过程中遇到一个场景,需要批量判断点是否位于某个多边形,搜索了几个算法,发现过于复杂,本身理解就有困难,编成代码就更难了。
披头
2019/12/26
1.8K0
PyOpenGL 彩色多边形
一直想在PyQt中找一个能显示有限元2D云图的部件,可惜QLinearGradient类只能使颜色在两个点之间插值变化,3个或以上点时则无能为力。还好我们可以使用PyOpenGL。
用户6021899
2019/08/14
1.7K0
php判断坐标是否在指定的多边形中
如何判断一个坐标点是否在一个多边形中,具体的应用场景就是,外卖派送,用户提供的坐标是否是在外卖的派送范围之内。用户的坐标可以通过手机设备获取到,派送范围就是通过在地图上,进行多边形的绘制,获取多个坐标点连接起来的配送范围。下面来看看代码上是如何简单判断的。
码农编程进阶笔记
2021/07/20
1.6K0
图像多边形填充
算法:图像多边形填充是不仅可以填充凸多边形,而且可以填充任何不具有自相交的单调多边形,即其轮廓与每条水平线(扫描线)的相交最多为两次(最顶部边缘和/或底部边缘水平)。如果图像多边形填充部分或全部位于图像外部,则将对其进行裁剪,还可以处理以亚像素精度指定的像素坐标,意味着可以将坐标作为编码为整数的定点数传递。
裴来凡
2022/05/28
6490
图像多边形填充
高德地图绘制多边形与编辑
<div id="GDMap" style="height: calc(100vh - 100px)"></div> <div style="display:none"> <ContextMenuCom ref="ContextMenuCom"></ContextMenuCom> </div> 使用2个插件 "AMap.MouseTool" , "AMap.PolygonEditor" 模拟数据结构  GDMap: null, lnglat
tianyawhl
2023/03/08
1K0
多边形求交
两个多边形求交的实现需要几个模块 (cgal中有insect函数,但是必须要求使用CGAL::Exact_predicates_exact_constructions_kernel) 本人出于其他想法,没有把基于Exact_predicates_inexact_constructions_kernel核的Polygon_2转换为 Exact_predicates_exact_constructions_kernel的核,而是自己写了一个求交函数自用.
用户3519280
2023/07/06
2690
多边形的点序
凸多边形:Convex polygon,non-self-intersecting polygon, simple polygon说的都是它(定义详见 wiki)。常见的凸多边形有:矩形、三角形等。
用户4363240
2020/01/01
1.6K0
多边形的点序
【OpenGL】十八、OpenGL 绘制多边形 ( 绘制 GL_POLYGON 模式多边形 )
使用 glBegin(GL_POLYGON) 设置绘制多边形 , 不管有几个点 , 都按照指定的顺序连接起来 ;
韩曙亮
2023/03/28
3.1K0
【OpenGL】十八、OpenGL 绘制多边形  ( 绘制 GL_POLYGON 模式多边形 )
python计算多边形面积
本文提供一个简单的方法计算多边形面积,参考维基百科 实现代码: def polygon_area(polygon): """ compute polygon area polygon: list with shape [n, 2], n is the number of polygon points """ area = 0 q = polygon[-1] for p in polygon: area += p[0] * q[1]
DoubleV
2021/12/06
1.6K0
python计算多边形面积
UGL之绘制多边形
主要函数就是uglPolygon(),参数pData用于指明每个顶点的坐标,首尾两个点需要一致,所以其个数numPoints比多边形的实际顶点数要多一个,另外还需要指明前景色(边框)和背景色(填充)
Taishan3721
2020/04/08
1K0
UGL之绘制多边形
最优拟合多边形框
算法:最优拟合多边形框是计算包围指定轮廓点集的点集,最优拟合多边形框是边界表达的一种,采用Douglas-Peucker(DP)算法来实现。
裴来凡
2022/05/28
7510
最优拟合多边形框
CGAL 简单的多边形
您需要的两个多边形不构成原始船体。如果您只想使用(0,0)作为顶点之一将原始集合分成三角形,则可以执行此操作:
用户3519280
2023/07/06
2810
OpenGLES(三)- GLKit: 多边形纹理、旋转OpenGLES(三)- GLKit: 多边形纹理、旋转
本文中会省略关于GLKit最基本的API的注释,如果需要详细注释可以看另一篇OpenGLES(二)- 纹理贴图
用户8893176
2021/08/09
8410
OpenGLES(三)-  GLKit: 多边形纹理、旋转OpenGLES(三)-  GLKit: 多边形纹理、旋转
多边形内有2枚钉子的图形_当多边形内没有钉子
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other) Total Submission(s) : 24 Accepted Submission(s) : 7 Problem Description Statement of the Problem Several drawing applications allow us to draw polygons and almost all of them allow us to fill them with some color. The task of filling a polygon reduces to knowing which points are inside it, so programmers have to colour only those points. You’re expected to write a program which tells us if a given point lies inside a given polygon described by the coordinates of its vertices. You can assume that if a point is in the border of the polygon, then it is in fact inside the polygon.
全栈程序员站长
2022/09/22
5620
多边形直线剪裁算法
直线与多边形求交算法 Cohen-Sutherland 采用位运算,计算直线与多边形之间关系 使用编码,将多边形窗口区域分为五个部分,根据区域选择抛弃线段 两端点都在视口区域内,区域码相或为 0 , 接受 两端点至少共享一个不可见区域,区域码相与不为 1 , 拒绝 /// <summary> /// The Cohen Sutherland line clipping algorithm /// </summary> public class CohenSutherland
用户2434869
2019/08/20
7100
php判断坐标是否在指定的多边形中「建议收藏」
如何判断一个坐标点是否在一个多边形中,具体的应用场景就是,外卖派送,用户提供的坐标是否是在外卖的派送范围之内。用户的坐标可以通过手机设备获取到,派送范围就是通过在地图上,进行多边形的绘制,获取多个坐标点连接起来的配送范围。下面来看看代码上是如何简单判断的。
全栈程序员站长
2022/07/11
1.2K0
php判断坐标是否在指定的多边形中「建议收藏」

相似问题

如何检查多边形是否与多边形相交。(Java)

12

平行多边形相交检测

13

确定线段是否与多边形相交

40

多边形与直线相交

16

谷歌地图多边形自相交检测

13
添加站长 进交流群

领取专属 10元无门槛券

AI混元助手 在线答疑

扫码加入开发者社群
关注 腾讯云开发者公众号

洞察 腾讯核心技术

剖析业界实践案例

扫码关注腾讯云开发者公众号
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文