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

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

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

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

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

有什么暗示吗?

代码语言:javascript
复制
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
复制
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 10:19:42

安装g++ 8

代码语言:javascript
复制
sudo apt install g++-8

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

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

https://askubuntu.com/questions/1079885

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档